Given the following routes:
when("/") ...
when("/foo") ...
when("/:bar") ...
when("/baz") ...
I would think a $location of "/baz" would hit the last route, but it
doesn't. It instead matches on the :bar route. If I switch the
declaration order:
when("/baz") ...
when("/:bar") ...
it works as expected. Shouldn't the route matcher consider constants in
the path more specific than catch all route params?
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.