app.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. .otherwise({
  48. redirectTo: '/'
  49. })
  50. }])
  51. // app.run(function($timeout) {
  52. //
  53. // });