app.js 571 B

1234567891011121314151617181920
  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. }).otherwise({
  16. redirectTo: '/'
  17. })
  18. }])