app.js 614 B

1234567891011121314151617181920212223242526
  1. var app = angular.module('app', ['ngRoute', 'ui.bootstrap', 'cgNotify']);
  2. app.config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) {
  3. $locationProvider.html5Mode(true);
  4. $routeProvider
  5. .when('/', {
  6. templateUrl: 'views/raw.html',
  7. controller: 'rawCtrl'
  8. })
  9. .when('/cut/:id', {
  10. templateUrl: 'views/cut.html',
  11. controller: 'cutCtrl'
  12. })
  13. .when('/processed', {
  14. templateUrl: 'views/processed.html',
  15. //controller: 'facturaCtrl'
  16. })
  17. .when('/youtube', {
  18. templateUrl: 'views/youtube.html',
  19. //controller: 'facturaCtrl'
  20. })
  21. .otherwise({
  22. redirectTo: '/'
  23. });
  24. }]);