mirror of
https://github.com/arnaucube/objectImageIdentifierAI.git
synced 2026-02-08 12:16:49 +01:00
initiating the smartphone app
This commit is contained in:
44
smartphoneApp/www/js/app.js
Normal file
44
smartphoneApp/www/js/app.js
Normal file
@@ -0,0 +1,44 @@
|
||||
|
||||
angular.module('app', [
|
||||
'ionic',
|
||||
'app.main',
|
||||
'app.menu'
|
||||
])
|
||||
|
||||
.run(function($ionicPlatform) {
|
||||
$ionicPlatform.ready(function() {
|
||||
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
|
||||
// for form inputs)
|
||||
if (window.cordova && window.cordova.plugins.Keyboard) {
|
||||
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
|
||||
cordova.plugins.Keyboard.disableScroll(true);
|
||||
|
||||
}
|
||||
if (window.StatusBar) {
|
||||
// org.apache.cordova.statusbar required
|
||||
StatusBar.styleDefault();
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
.config(function($stateProvider, $urlRouterProvider) {
|
||||
$stateProvider
|
||||
|
||||
.state('app', {
|
||||
url: '/app',
|
||||
abstract: true,
|
||||
templateUrl: 'templates/menu.html',
|
||||
controller: 'MenuCtrl'
|
||||
})
|
||||
|
||||
.state('app.main', {
|
||||
url: '/main',
|
||||
views: {
|
||||
'menuContent': {
|
||||
templateUrl: 'templates/main.html'
|
||||
}
|
||||
}
|
||||
});
|
||||
// if none of the above states are matched, use this as the fallback
|
||||
$urlRouterProvider.otherwise('/app/main');
|
||||
});
|
||||
5
smartphoneApp/www/js/main.js
Normal file
5
smartphoneApp/www/js/main.js
Normal file
@@ -0,0 +1,5 @@
|
||||
angular.module('app.main', [])
|
||||
|
||||
.controller('MainCtrl', function($scope) {
|
||||
|
||||
});
|
||||
5
smartphoneApp/www/js/menu.js
Normal file
5
smartphoneApp/www/js/menu.js
Normal file
@@ -0,0 +1,5 @@
|
||||
angular.module('app.menu', [])
|
||||
|
||||
.controller('MenuCtrl', function($scope) {
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user