arnaucube
arnaucube/objectImageIdentifierAIPublic Self-hosted repository
objectImageIdentifierAI/smartphoneApp/www/js/app.js
smartphoneApp/www/js/app.jsRaw
 1
 2angular.module('app', [
 3    'ionic',
 4    'app.main',
 5    'app.menu'
 6])
 7
 8  .run(function($ionicPlatform) {
 9    $ionicPlatform.ready(function() {
10      // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
11      // for form inputs)
12      if (window.cordova && window.cordova.plugins.Keyboard) {
13        cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
14        cordova.plugins.Keyboard.disableScroll(true);
15
16      }
17      if (window.StatusBar) {
18        // org.apache.cordova.statusbar required
19        StatusBar.styleDefault();
20      }
21    });
22  })
23
24  .config(function($stateProvider, $urlRouterProvider) {
25    $stateProvider
26
27      .state('app', {
28        url: '/app',
29        abstract: true,
30        templateUrl: 'templates/menu.html',
31        controller: 'MenuCtrl'
32      })
33
34      .state('app.main', {
35        url: '/main',
36        views: {
37          'menuContent': {
38            templateUrl: 'templates/main.html'
39          }
40        }
41      });
42    // if none of the above states are matched, use this as the fallback
43    $urlRouterProvider.otherwise('/app/main');
44  });