1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- var app = angular.module('angularProject',['ngRoute','ngAnimate','firebase', 'slickCarousel','ngDragDrop']);
- app.config(['$routeProvider', function($routeProvider){
- $routeProvider
- .when('/',{
- templateUrl: './app/views/main-page.html',
- controller: 'MainPageController'
- })
- .when('/select-menu',{
- templateUrl: './app/views/select-menu-page.html',
- controller: 'SelectMenuPageController'
- })
- .when('/add-item',{
- templateUrl: './app/views/add-item-page.html',
- controller: 'AddItemPageController'
- })
- .when('/ready-menu',{
- templateUrl: './app/views/ready-menu-page.html',
- controller: 'ReadyMenuController'
- }).when('/ready-menu-loss',{
- templateUrl: './app/views/ready-menu-second.html',
- controller: 'ReadyMenuSecondController'
- })
- .when('/ready-menu-gain',{
- templateUrl: './app/views/ready-menu-second.html',
- controller: 'ReadyMenuSecondController'
- })
- .when('/ready-menu-balance',{
- templateUrl: './app/views/ready-menu-second.html',
- controller: 'ReadyMenuSecondController'
- })
- .when('/shopping-cart',{
- templateUrl: './app/views/shopping-cart-page.html',
- controller: 'ShoppingCartPageController'
- })
- .when('/user-page',{
- templateUrl: './app/views/user-page.html',
- controller: 'UserPageController'
- })
- .when('/messages',{
- templateUrl: './app/views/messages-page.html',
- controller: 'MessagesPageController'
- })
- .when('/constructor',{
- templateUrl: './app/views/constructor.html',
- controller: 'mealsConstructor'
- })
- .otherwise({
- redirectTo: '/'
- })
- }])
- // app.run(function($timeout) {
- //
- // });
|