This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
$route property not available on next and current parameters in $routeChangeStart for default route #1907
Closed
Description
In $routeChangeStart event handler current and next parameters don't have the $route property when the route is default route.
I have put toghether a plnkr that shows the problem:
http://run.plnkr.co/nQePdzxAemAZ5Q2T/
Here are example routes:
app.config(function($routeProvider){
$routeProvider.when('/page/:id', {templateUrl: 'Main.html' , controller: 'MainCtrl'});
$routeProvider.otherwise({templateUrl: 'Main.html' , controller: 'MainCtrl'});
});
Expected behaviour: $route should be present on current and next parameters regardles whether a default route is hit or regular route.
Metadata
Metadata
Assignees
Labels
No labels