This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 17
17
* position within the DOM, such as the `:first-child` or `:last-child` pseudo-classes.
18
18
*
19
19
* Note that when an element is removed using `ngIf` its scope is destroyed and a new scope
20
- * is created when the element is restored. The scope created within `ngIf` inherits from
20
+ * is created when the element is restored. The scope created within `ngIf` inherits from
21
21
* its parent scope using
22
22
* {@link https://github.com/angular/angular.js/wiki/The-Nuances-of-Scope-Prototypal-Inheritance prototypal inheritance}.
23
23
* An important implication of this is if `ngModel` is used within `ngIf` to bind to
24
24
* a javascript primitive defined in the parent scope. In this case any modifications made to the
25
25
* variable within the child scope will override (hide) the value in the parent scope.
26
26
*
27
27
* Also, `ngIf` recreates elements using their compiled state. An example of this behavior
28
- * is if an element's class attribute is directly modified after it's compiled, using something like
28
+ * is if an element's class attribute is directly modified after it's compiled, using something like
29
29
* jQuery's `.addClass()` method, and the element is later removed. When `ngIf` recreates the element
30
30
* the added class will be lost because the original compiled state is used to regenerate the element.
31
31
*
Original file line number Diff line number Diff line change 14
14
* you may either {@link ng.$sceDelegateProvider#resourceUrlWhitelist whitelist them} or
15
15
* {@link ng.$sce#trustAsResourceUrl wrap them} as trusted values. Refer to Angular's {@link
16
16
* ng.$sce Strict Contextual Escaping}.
17
- *
17
+ *
18
18
* In addition, the browser's
19
19
* {@link https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest
20
20
* Same Origin Policy} and {@link http://www.w3.org/TR/cors/ Cross-Origin Resource Sharing
You can’t perform that action at this time.
0 commit comments