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 |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | window.angular && (function (angular) { |
| 9 | 'use strict'; |
| 10 | |
| 11 | angular |
| 12 | .module('app.users', [ |
| 13 | 'ngRoute', |
| 14 | 'app.constants', |
| 15 | 'app.common.services' |
| 16 | ]) |
| 17 | // Route configuration |
| 18 | .config(['$routeProvider', function ($routeProvider) { |
| 19 | $routeProvider |
Michael Davis | 71ec745 | 2017-04-24 16:28:57 -0500 | [diff] [blame] | 20 | .when('/users/manage-accounts', { |
Ed Tanous | bbcf670 | 2017-10-06 13:53:06 -0700 | [diff] [blame] | 21 | 'template': require('./controllers/user-accounts-controller.html'), |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 22 | 'controller': 'userAccountsController', |
| 23 | authenticated: true |
| 24 | }) |
| 25 | .when('/users', { |
Ed Tanous | bbcf670 | 2017-10-06 13:53:06 -0700 | [diff] [blame] | 26 | 'template': require('./controllers/user-accounts-controller.html'), |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 27 | 'controller': 'userAccountsController', |
| 28 | authenticated: true |
| 29 | }); |
| 30 | }]); |
| 31 | |
| 32 | })(window.angular); |