Is it possible to only allow certain choices in the routeProvider with angularjs?
For example, if I have:
$routeProvider.when('/:action/view/', {
Can I only allow ('basketball', 'baseball') as actions for this to be set as a match?
Is it possible to only allow certain choices in the routeProvider with angularjs?
For example, if I have:
$routeProvider.when('/:action/view/', {
Can I only allow ('basketball', 'baseball') as actions for this to be set as a match?
you can use redirectTo attribute of your route to redirect users in case of not allowed route call :