app.js 700 B

123456789101112131415161718192021222324
  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('/about-us',{
  17. templateUrl: './app/views/about-us.html',
  18. controller: 'AboutUsController'
  19. }).otherwise({
  20. redirectTo: '/'
  21. })
  22. }])