You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.2 KiB

  1. var urlapi = "http://127.0.0.1:3200/";
  2. var selectedImg="";
  3. angular.module('app', [
  4. 'ionic',
  5. 'app.main',
  6. 'app.menu'
  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. if (window.StatusBar) {
  17. // org.apache.cordova.statusbar required
  18. StatusBar.styleDefault();
  19. }
  20. });
  21. })
  22. .config(function($stateProvider, $urlRouterProvider) {
  23. $stateProvider
  24. .state('app', {
  25. url: '/app',
  26. abstract: true,
  27. templateUrl: 'templates/menu.html',
  28. controller: 'MenuCtrl'
  29. })
  30. .state('app.main', {
  31. url: '/main',
  32. views: {
  33. 'menuContent': {
  34. templateUrl: 'templates/main.html',
  35. controller: 'MainCtrl'
  36. }
  37. }
  38. });
  39. // if none of the above states are matched, use this as the fallback
  40. $urlRouterProvider.otherwise('/app/main');
  41. });