Guest User

Untitled

a guest
Jul 20th, 2015
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.98 KB | None | 0 0
  1. 'use strict';
  2. angular
  3. .module('testApp', [
  4. 'ngAnimate',
  5. 'ngAria',
  6. 'ngCookies',
  7. 'ngMessages',
  8. 'ngResource',
  9. 'ngRoute',
  10. 'ngSanitize',
  11. 'ngTouch',
  12. 'ngMaterial',
  13. 'ngMdIcons',
  14. 'appMenu',
  15. 'appProfiles',
  16. 'ngMdIcons',
  17. 'loginApp',
  18. 'calendarApp',
  19. 'registryApp',
  20. 'appConfiguration',
  21. 'ui.calendar',
  22. 'tasksApp',
  23. 'ng-breadcrumbs',
  24. 'ui.router',
  25. 'breadCrumbs'
  26. ])
  27.  
  28. .config(config)
  29. .run(run);
  30.  
  31. config.$inject = ['$routeProvider', '$locationProvider','ui.router'];
  32.  
  33. function config($routeProvider, $locationProvider) {
  34. $routeProvider
  35. .when('/', { templateUrl: '../views/profil.html', label: 'Profil' }
  36. )
  37. .when('/calendar', {
  38. templateUrl: 'scripts/modules/calendar/views/calendar.html',
  39. controller: 'CalendarCtrl',
  40. controllerAs: 'vm',
  41. label: 'Calendar'
  42. })
  43.  
  44. .when('/login', {
  45. templateUrl: 'scripts/modules/loginForm/views/login.html',
  46. controller: 'LoginController',
  47. controllerAs: 'vm',
  48. label: 'Login'
  49. })
  50. .when('/register', {
  51. templateUrl: 'scripts/modules/registerForm/views/register.html',
  52. controller: 'RegisterController',
  53. controllerAs: 'vm',
  54. label: 'Register'
  55. })
  56. .when('/register', {
  57. templateUrl: 'scripts/modules/registerForm/views/register.html',
  58. controller: 'RegisterController',
  59. controllerAs: 'vm'
  60. })
  61. .when('/about', {
  62. templateUrl: 'views/about.html',
  63. controller: 'AboutCtrl',
  64. controllerAs: 'about',
  65. label: 'About'
  66. })
  67. .when('/main', {
  68. templateUrl: 'scripts/modules/menu/views/menu.html',
  69. controller: 'MainCtrl',
  70. controllerAs: 'main'
  71. })
  72. .when('/menu', {
  73. templateUrl: 'scripts/modules/menu/views/menu.html'
  74. })
  75. .when('/profil', {
  76. templateUrl: 'views/profil.html'
  77. })
  78. .when('/quicktasks', {
  79. templateUrl: 'views/quicktasks.html',
  80. controller: 'QuickTasksCtrl',
  81. controllerAs: 'vm',
  82. label: 'Quick tasks'
  83. })
  84. .when('/404', {
  85. templateUrl: '404.html',
  86. })
  87. .when('/quicktasks', {
  88. templateUrl: 'scripts/modules/quicktasks/views/quicktasks.html',
  89. controller: 'QuickTasksCtrl',
  90. controllerAs: 'vm'
  91. })
  92. .when('/breadcrumbs', {
  93. templateUrl: 'scripts/modules/breadcrumbs/views/breadcrumbs.html',
  94. controller: 'BreadCrumbsCtrl',
  95. controllerAs: 'vm',
  96. label: 'Bread'
  97. })
  98. .otherwise({
  99. redirectTo: '/404'
  100. });
  101. }
Advertisement
Add Comment
Please, Sign In to add comment