ngRoute.$route.$routeChangeStart

$routeChangeStart

Broadcasted before a route change. At this point the route services starts resolving all of the dependencies needed for the route change to occur. Typically this involves fetching the view template as well as any dependencies defined in resolve route property. Once all of the dependencies are resolved $routeChangeSuccess is fired.

The route change (and the $location change that triggered it) can be prevented by calling preventDefault method of the event. See $rootScope.Scope for more details about event object.

Type:

broadcast

Target:

root scope

Parameters

Param Type Details
angularEvent Object

Synthetic event object.

next Route

Future route information.

current Route

Current route information.

doc_AngularJS
2016-03-29 16:12:24
Comments
Leave a Comment

Please login to continue.