Advertisement
Guest User

Untitled

a guest
Oct 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. // Ionic Starter App
  2.  
  3. // angular.module is a global place for creating, registering and retrieving Angular modules
  4. // 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
  5. // the 2nd parameter is an array of 'requires'
  6. angular.module('concesionario', ['ionic','moduloControladores','moduloServices'])
  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. // The reason we default this to hidden is that native apps don't usually show an accessory bar, at
  13. // least on iOS. It's a dead giveaway that an app is using a Web View. However, it's sometimes
  14. // useful especially with forms, though we would prefer giving the user a little more room
  15. // to interact with the app.
  16. if (window.cordova && window.Keyboard) {
  17. window.Keyboard.hideKeyboardAccessoryBar(true);
  18. }
  19.  
  20. if (window.StatusBar) {
  21. // Set the statusbar to use the default style, tweak this to
  22. // remove the status bar on iOS or change it to use white instead of dark colors.
  23. StatusBar.styleDefault();
  24. }
  25. });
  26. })
  27.  
  28. .config(function($stateProvider){
  29. $stateProvider
  30. .state('marcas',{
  31. url:'/marcas',
  32. templateUrl:'templates/marca.html' ,
  33. controller:'marcasCtrl',
  34. controllerAs:'marc'
  35. })
  36. .state('modelos',{
  37. url:'/modelos/:idmarca',
  38. templateUrl:'templates/modelos.html' ,
  39. controller:'modelosCtrl',
  40. controllerAs:'mod'
  41.  
  42. })
  43. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement