You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
The $routeProvider only seems to notice properties on the route parameter to $routeProvider.when(path, route) when those properties are own properties. It doesn't seem to pick up properties on the route object that are inherited properties (i.e. properties coming from prototypal inheritance).
I believe this is because the implementation of when() in the source code calls angular.extend() with the route as one of the sources, and angular.extend() only seems to copy own properties and not inherited properties of the sources.