mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-19 16:10:22 +00:00
This is just basic implementation of $browser.url, $browser.onUrlChange methods:
$browser.url() - returns current location.href
$browser.url('/new') - set url to /new
If supported, history.pushState is used, location.href property otherwise.
$browser.url('/new', true) - replace current url with /new
If supported, history.replaceState is used, location.replace otherwise.
$browser.onUrlChange is only fired when url is changed from the browser:
- user types into address bar
- user clicks on back/forward button
- user clicks on link
It's not fired when url is changed using $browser.url()
Breaks Removed $browser.setUrl(), $browser.getUrl(), use $browser.url()
Breaks Removed $browser.onHashChange(), use $browser.onUrlChange()
|
||
|---|---|---|
| .. | ||
| cookiesSpec.js | ||
| cookieStoreSpec.js | ||
| deferSpec.js | ||
| documentSpec.js | ||
| exceptionHandlerSpec.js | ||
| hoverSpec.js | ||
| invalidWidgetsSpec.js | ||
| localeSpec.js | ||
| locationSpec.js | ||
| logSpec.js | ||
| resourceSpec.js | ||
| routeParamsSpec.js | ||
| routeSpec.js | ||
| windowSpec.js | ||
| xhr.bulkSpec.js | ||
| xhr.cacheSpec.js | ||
| xhr.errorSpec.js | ||
| xhrSpec.js | ||