app.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. var app = angular.module('angularProject',['ngRoute','ngAnimate','firebase', 'slickCarousel','ngDragDrop']);
  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. })
  43. .when('/constructor',{
  44. templateUrl: './app/views/constructor.html',
  45. controller: 'mealsConstructor'
  46. })
  47. .when('/about-us',{
  48. templateUrl: './app/views/about-us.html',
  49. controller: 'AboutUsController'
  50. })
  51. .otherwise({
  52. redirectTo: '/'
  53. })
  54. }])
  55. // app.run(function($timeout) {
  56. //
  57. // });