Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- angular
- .module('testApp', [
- 'ngAnimate',
- 'ngAria',
- 'ngCookies',
- 'ngMessages',
- 'ngResource',
- 'ngRoute',
- 'ngSanitize',
- 'ngTouch',
- 'ngMaterial',
- 'ngMdIcons',
- 'appMenu',
- 'appProfiles',
- 'ngMdIcons',
- 'loginApp',
- 'calendarApp',
- 'registryApp',
- 'appConfiguration',
- 'ui.calendar',
- 'tasksApp',
- 'ng-breadcrumbs',
- 'ui.router',
- 'breadCrumbs'
- ])
- .config(config)
- .run(run);
- config.$inject = ['$routeProvider', '$locationProvider','ui.router'];
- function config($routeProvider, $locationProvider) {
- $routeProvider
- .when('/', { templateUrl: '../views/profil.html', label: 'Profil' }
- )
- .when('/calendar', {
- templateUrl: 'scripts/modules/calendar/views/calendar.html',
- controller: 'CalendarCtrl',
- controllerAs: 'vm',
- label: 'Calendar'
- })
- .when('/login', {
- templateUrl: 'scripts/modules/loginForm/views/login.html',
- controller: 'LoginController',
- controllerAs: 'vm',
- label: 'Login'
- })
- .when('/register', {
- templateUrl: 'scripts/modules/registerForm/views/register.html',
- controller: 'RegisterController',
- controllerAs: 'vm',
- label: 'Register'
- })
- .when('/register', {
- templateUrl: 'scripts/modules/registerForm/views/register.html',
- controller: 'RegisterController',
- controllerAs: 'vm'
- })
- .when('/about', {
- templateUrl: 'views/about.html',
- controller: 'AboutCtrl',
- controllerAs: 'about',
- label: 'About'
- })
- .when('/main', {
- templateUrl: 'scripts/modules/menu/views/menu.html',
- controller: 'MainCtrl',
- controllerAs: 'main'
- })
- .when('/menu', {
- templateUrl: 'scripts/modules/menu/views/menu.html'
- })
- .when('/profil', {
- templateUrl: 'views/profil.html'
- })
- .when('/quicktasks', {
- templateUrl: 'views/quicktasks.html',
- controller: 'QuickTasksCtrl',
- controllerAs: 'vm',
- label: 'Quick tasks'
- })
- .when('/404', {
- templateUrl: '404.html',
- })
- .when('/quicktasks', {
- templateUrl: 'scripts/modules/quicktasks/views/quicktasks.html',
- controller: 'QuickTasksCtrl',
- controllerAs: 'vm'
- })
- .when('/breadcrumbs', {
- templateUrl: 'scripts/modules/breadcrumbs/views/breadcrumbs.html',
- controller: 'BreadCrumbsCtrl',
- controllerAs: 'vm',
- label: 'Bread'
- })
- .otherwise({
- redirectTo: '/404'
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment