The requirement of the application is to show different options based on the Role of the user. Like
If role is Admin , the after logging in , the user needs to be shown a master page which has link for Option 1, Option 2 and Option 3.
If the role is Operator , after logging in , the user needs to be shown a master page which has link for Option 4 and Option 5.
Any Idea how to achieve this ?. I am using token based authentication. I am using ng-view. Here is my config settings.
angularSupplierCTQApp.config(function ($routeProvider, $locationProvider) {
$routeProvider
.when("/home", {
templateUrl: "App/Home/Home.html",
controller: "HomeController"
})
.when("/login", {
templateUrl: "App/Login/loginTemplate.html",
controller: "LoginController"
})
.otherwise({
redirectTo: "/login"
});
});