-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ngRouteNames applied to all routes in app #2
Comments
hmm do you have an otherwise block in your $routeProvider? $routeProvider.otherwise({
redirectTo: '/'
}); What is the effect of caused when you visit routes outside of the app? |
Yes.
|
What happens when you visit an unauthenticated page? |
It's the |
So the home / root route is defined? |
The problem is that the home route has a number of dependencies in it's |
hmm.. You might have to check if authenticated in the resolve code. I'm not sure you can turn off routes |
This is something the |
I'll have a look |
My app uses .NET MVC routes for unauthenticated pages, but once a user has been authenticated, they enter Angular SPA land where I had originally been using the built-in
$routeProvider
. I accomplish this by applying theng-view
directive in the view for the only authenticated MVC route in my app (Home/Index
).I've implemented
ngRouteNames
to this app and the route naming works great. The problem I just noticed is that when I go to the unauthenticated pages outside of my Angular routing, it somehow ends up applying routing to it.Any idea why it would be doing this?
The text was updated successfully, but these errors were encountered: