1 define(['app/app.module'], function (app) {
4 app.register.controller('AppCtrl', function ($rootScope, $state, $scope, $location) {
7 if( navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) || navigator.userAgent.match(/iPhone/i) ||
8 navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/BlackBerry/i) ||
9 navigator.userAgent.match(/Windows Phone/i) ) {
17 $scope.isCollapse = false;
18 $scope.breadcrumbs = {};
19 $scope.isState = function(name) {
20 return $state.includes(name);