$location.$locationChangeSuccess

$locationChangeSuccess

Broadcasted after a URL was changed.

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.