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