Open
Description
- I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.
Item | Version |
---|---|
generator-angular-fullstack | 4.0.5 |
Node | 6.4.0 |
npm | 3.10.3 |
Operating System | Manjaro 16.08 Ellada |
etc | etc |
Item | Answer |
---|---|
Authenticate client side. | |
Router | ngRoute / ui-router |
Hi, i try to allow certain users in views in client side, so, for example in admin view it has this code:
`'use strict';
export default function routes($routeProvider) {
'ngInject';
$routeProvider
.when('/admin', {
template: require('./admin.html'),
controller: 'AdminController',
controllerAs: 'admin',
authenticate: 'admin'
});
};`
When i put an array in «authenticate» like this:
authenticate: ['paid', 'admin']
or authenticate: ["paid", "admin"]
or authenticate: ['admin', 'paid']
it does not work.
When i put multiple authenticate like this:
....
authenticate: 'admin',
authenticate: 'paid'
....
Works fine but in the console debugger says: Duplicate identifier 'authenticate'. and can't make gulp build.
The doubt is, can i allow another user role?.