Skip to content
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

Controllers are loaded that have same prefix #100

Open
levipage opened this issue Jul 31, 2015 · 1 comment
Open

Controllers are loaded that have same prefix #100

levipage opened this issue Jul 31, 2015 · 1 comment

Comments

@levipage
Copy link

Is this product still maintained.. I've invested quite a lot of time into using it and it seems to have a lot of unanswered issues over the past several months?

I noticed that if a route starts with the same text as another route, any other route with the same prefix gets loaded as well even if the second route is not "within" the first route.

For instance... I define a route that has a path of '/'.
.when('/', 'home')

But I want to actually start the user off at the login which has nothing to do with the first route:
.when('/login/', 'login')

However the controller for the first route gets loaded because it starts with the same route prefix.

@levipage levipage changed the title Controller are loaded that have same prefix as another route Controllers are loaded that have same prefix / resolve is ignored Jul 31, 2015
@levipage levipage changed the title Controllers are loaded that have same prefix / resolve is ignored Controllers are loaded that have same prefix Jul 31, 2015
@artch
Copy link
Owner

artch commented Aug 10, 2015

Could you please create a test case reproducing this using jsFiddle, Plunker or something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants