Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 1 | /** |
| 2 | * A module for the users |
| 3 | * |
| 4 | * @module app/users/index |
| 5 | * @exports app/users/index |
| 6 | * @version 0.0.1 |
| 7 | */ |
| 8 | |
| 9 | window.angular && (function (angular) { |
| 10 | 'use strict'; |
| 11 | |
| 12 | angular |
| 13 | .module('app.users', [ |
| 14 | 'ngRoute', |
| 15 | 'app.constants', |
| 16 | 'app.common.services' |
| 17 | ]) |
| 18 | // Route configuration |
| 19 | .config(['$routeProvider', function ($routeProvider) { |
| 20 | $routeProvider |
Michael Davis | 71ec745 | 2017-04-24 16:28:57 -0500 | [diff] [blame^] | 21 | .when('/users/manage-accounts', { |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 22 | 'templateUrl': 'users/controllers/user-accounts-controller.html', |
| 23 | 'controller': 'userAccountsController', |
| 24 | authenticated: true |
| 25 | }) |
| 26 | .when('/users', { |
| 27 | 'templateUrl': 'users/controllers/user-accounts-controller.html', |
| 28 | 'controller': 'userAccountsController', |
| 29 | authenticated: true |
| 30 | }); |
| 31 | }]); |
| 32 | |
| 33 | })(window.angular); |