Answer the question
In order to leave comments, you need to log in
How to track the url change and set an event to replace it?
How to track the url change and set an event to replace it?
I am using html5 mode angularjs
Answer the question
In order to leave comments, you need to log in
https://docs.angularjs.org/api/ng/service/$location
$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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question