I want to route based on a user type in my angular app.
So if user is Admin, then should be redirected to admin.html and if user then user.html based on the value coming of user type from database after login.
In this I want to add condition:
.when('/dashboard', {
title: 'dashboard',
templateUrl: 'partials/User.html',
controller: 'authCtrl'
})