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 | |
Andrew Geissler | ba5e3f3 | 2018-05-24 10:58:00 -0700 | [diff] [blame] | 8 | window.angular && (function(angular) { |
| 9 | 'use strict'; |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 10 | |
Andrew Geissler | ba5e3f3 | 2018-05-24 10:58:00 -0700 | [diff] [blame] | 11 | angular |
Gunnar Mills | 2b9a0d9 | 2018-07-11 15:10:08 -0500 | [diff] [blame^] | 12 | .module('app.users', ['ngRoute', 'app.common.services']) |
Andrew Geissler | d27bb13 | 2018-05-24 11:07:27 -0700 | [diff] [blame] | 13 | // Route configuration |
| 14 | .config([ |
| 15 | '$routeProvider', |
| 16 | function($routeProvider) { |
| 17 | $routeProvider |
| 18 | .when('/users/manage-accounts', { |
| 19 | 'template': |
| 20 | require('./controllers/user-accounts-controller.html'), |
| 21 | 'controller': 'userAccountsController', |
| 22 | authenticated: true |
| 23 | }) |
| 24 | .when('/users', { |
| 25 | 'template': |
| 26 | require('./controllers/user-accounts-controller.html'), |
| 27 | 'controller': 'userAccountsController', |
| 28 | authenticated: true |
| 29 | }); |
| 30 | } |
| 31 | ]); |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 32 | |
| 33 | })(window.angular); |