You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+31-2
Original file line number
Diff line number
Diff line change
@@ -448,8 +448,8 @@ This in turn affects how dirty checking treats objects that prototypally
448
448
inherit from `Array` (e.g. MobX observable arrays). AngularJS will now
449
449
be able to handle these objects better when copying or watching.
450
450
451
-
### **$sce** due to:
452
-
- **[1e9ead](https://github.com/angular/angular.js/commit/1e9eadcd72dbbd5c67dae8328a63e535cfa91ff9)**: handle URL sanitization through the `$sce` service
451
+
### **$sce** :
452
+
- due to **[1e9ead](https://github.com/angular/angular.js/commit/1e9eadcd72dbbd5c67dae8328a63e535cfa91ff9)**: handle URL sanitization through the `$sce` service
453
453
454
454
If you use `attrs.$set` for URL attributes (a[href] and img[src]) there will no
455
455
longer be any automated sanitization of the value. This is in line with other
@@ -463,6 +463,35 @@ Note that values that have been passed through the `$interpolate` service within
463
463
`URL` or `MEDIA_URL` will have already been sanitized, so you would not need to sanitize
464
464
these values again.
465
465
466
+
- due to **[1e9ead](https://github.com/angular/angular.js/commit/1e9eadcd72dbbd5c67dae8328a63e535cfa91ff9)**: handle URL sanitization through the `$sce` service
467
+
468
+
binding `trustAs()` and the short versions (`trustAsResourceUrl()` et al.) to
469
+
`ngSrc`, `ngSrcset`, and `ngHref` will now raise an infinite digest error:
- **[1d8046](https://github.com/angular/angular.js/commit/1d804645f7656d592c90216a0355b4948807f6b8)**: consider `null` and `undefined` greater than other values
Copy file name to clipboardExpand all lines: docs/content/guide/$location.ngdoc
+32-116
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
@sortOrder 500
4
4
@description
5
5
6
-
# What does it do?
6
+
# Using the `$location` service
7
7
8
8
The `$location` service parses the URL in the browser address bar (based on [`window.location`](https://developer.mozilla.org/en/window.location)) and makes the URL available to
9
9
your application. Changes to the URL in the address bar are reflected into the `$location` service and
@@ -76,7 +76,7 @@ the current URL in the browser.
76
76
It does not cause a full page reload when the browser URL is changed. To reload the page after
77
77
changing the URL, use the lower-level API, `$window.location.href`.
78
78
79
-
# General overview of the API
79
+
## General overview of the API
80
80
81
81
The `$location` service can behave differently, depending on the configuration that was provided to
82
82
it when it was instantiated. The default configuration is suitable for many applications, for
@@ -85,7 +85,7 @@ others customizing the configuration can enable new features.
85
85
Once the `$location` service is instantiated, you can interact with it via jQuery-style getter and
86
86
setter methods that allow you to get or change the current URL in the browser.
87
87
88
-
## `$location` service configuration
88
+
### `$location` service configuration
89
89
90
90
To configure the `$location` service, retrieve the
91
91
{@link ng.$locationProvider $locationProvider} and set the parameters as follows:
@@ -113,12 +113,12 @@ To configure the `$location` service, retrieve the
113
113
Prefix used for Hashbang URLs (used in Hashbang mode or in legacy browsers in HTML5 mode).<br />
0 commit comments