R
R
Roman Rakzin2015-07-29 00:31:11
JavaScript
Roman Rakzin, 2015-07-29 00:31:11

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

1 answer(s)
M
Mikhail Osher, 2015-07-29
@miraage

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 question

Ask a Question

731 491 924 answers to any question