Well I am trying to set the ui-router's
abstract
property to true dynamically, so that I can avoid unauthorized access by the user to that route. I could only think of that way to achieve that goal. Here's the demo route.
.state('project', {
abstract: {{value}},
url: '/users',
templateUrl: 'views/configuration/index.html',
},
I want that once the angular app loads, all such routes becomes abstract-true
whose access should be denied to the user. Please help me out in achieving this task and learning something new.