app.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. var app = angular.module('angularProject',['ngRoute','ngAnimate','firebase']);
  2. app.config(['$routeProvider', function($routeProvider){
  3. $routeProvider
  4. .when('/',{
  5. templateUrl: './app/views/main-page.html',
  6. controller: 'MainPageController'
  7. })
  8. .when('/select-menu',{
  9. templateUrl: './app/views/select-menu-page.html',
  10. controller: 'SelectMenuPageController'
  11. })
  12. .when('/add-item',{
  13. templateUrl: './app/views/add-item-page.html',
  14. controller: 'AddItemPageController'
  15. })
  16. .when('/ready-menu',{
  17. templateUrl: './app/views/ready-menu-page.html',
  18. controller: 'ReadyMenuController'
  19. }).when('/ready-menu-loss',{
  20. templateUrl: './app/views/ready-menu-second.html',
  21. controller: 'ReadyMenuSecondController'
  22. })
  23. .when('/ready-menu-gain',{
  24. templateUrl: './app/views/ready-menu-second.html',
  25. controller: 'ReadyMenuSecondController'
  26. })
  27. .when('/ready-menu-balance',{
  28. templateUrl: './app/views/ready-menu-second.html',
  29. controller: 'ReadyMenuSecondController'
  30. })
  31. .when('/shopping-cart',{
  32. templateUrl: './app/views/shopping-cart-page.html',
  33. controller: 'ShoppingCartPageController'
  34. })
  35. .when('/user-page',{
  36. templateUrl: './app/views/user-page.html',
  37. controller: 'UserPageController'
  38. })
  39. .when('/messages',{
  40. templateUrl: './app/views/messages-page.html',
  41. controller: 'MessagesPageController'
  42. }).otherwise({
  43. redirectTo: '/'
  44. })
  45. }])
  46. // app.run(function($timeout) {
  47. //
  48. // });