1/** 2 * A module for the configuration 3 * 4 * @module app/configuration/index 5 * @exports app/configuration/index 6 * @version 0.0.1 7 */ 8 9window.angular && (function (angular) { 10 'use strict'; 11 12 angular 13 .module('app.configuration', [ 14 'ngRoute', 15 'app.constants', 16 'app.common.services' 17 ]) 18 // Route configuration 19 .config(['$routeProvider', function ($routeProvider) { 20 $routeProvider 21 .when('/configuration/network', { 22 'templateUrl': 'configuration/controllers/network-controller.html', 23 'controller': 'networkController', 24 authenticated: true 25 }) 26 .when('/configuration/security', { 27 'templateUrl': 'configuration/controllers/security-controller.html', 28 'controller': 'securityController', 29 authenticated: true 30 }).when('/configuration/date-time', { 31 'templateUrl': 'configuration/controllers/date-time-controller.html', 32 'controller': 'dateTimeController', 33 authenticated: true 34 }) 35 .when('/configuration/file', { 36 'templateUrl': 'configuration/controllers/file-controller.html', 37 'controller': 'fileController', 38 authenticated: true 39 }).when('/configuration', { 40 'templateUrl': 'configuration/controllers/network-controller.html', 41 'controller': 'networkController', 42 authenticated: true 43 }); 44 }]); 45 46})(window.angular); 47