Skip to content

Controllers are loaded that have same prefix #100

Open

Description

@levipage

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.

Activity

  1. changed the title [-]Controller are loaded that have same prefix as another route[/-] [+]Controllers are loaded that have same prefix / resolve is ignored[/+] on Jul 31, 2015
  2. changed the title [-]Controllers are loaded that have same prefix / resolve is ignored[/-] [+]Controllers are loaded that have same prefix[/+] on Jul 31, 2015
  3. artch commented on Aug 10, 2015

    @artch
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions