I am new to AngularJS, and I am a little confused of how I can use angular-\"ui-router\" in the following scenario:
I am building a web application which consists of
I Created this module to help make this process piece of cake
You can do things like:
$routeProvider
.state('secret',
{
...
permissions: {
only: ['admin', 'god']
}
});
Or also
$routeProvider
.state('userpanel',
{
...
permissions: {
except: ['not-logged-in']
}
});
It's brand new but worth checking out!
https://github.com/Narzerus/angular-permission