$location.$locationChangeStart

$locationChangeStart

Broadcasted before a URL will change.

This change can be prevented by calling preventDefault method of the event. See $rootScope.Scope for more details about event object. Upon successful change $locationChangeSuccess is fired.

The newState and oldState parameters may be defined only in HTML5 mode and when the browser supports the HTML5 History API.

Type:

broadcast

Target:

root scope

Parameters

Param Type Details
angularEvent Object

Synthetic event object.

newUrl string

New URL

oldUrl
(optional)
string

URL that was before it was changed.

newState
(optional)
string

New history state object

oldState
(optional)
string

History state object that was before it was changed.

doc_AngularJS
2016-03-29 16:10:29
Comments
Leave a Comment

Please login to continue.