Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 295043d

Browse files
committed
docs($compile): clarify to which element scope isolation applies
Closes #13556
1 parent 892d236 commit 295043d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/ng/compile.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,12 @@
277277
* the directive's element. If multiple directives on the same element request a new scope,
278278
* only one new scope is created.
279279
*
280-
* * **`{...}` (an object hash):** A new "isolate" scope is created for the directive's element. The
281-
* 'isolate' scope differs from normal scope in that it does not prototypically inherit from its parent
282-
* scope. This is useful when creating reusable components, which should not accidentally read or modify
283-
* data in the parent scope.
280+
* * **`{...}` (an object hash):** A new "isolate" scope is created for the directive's template.
281+
* The 'isolate' scope differs from normal scope in that it does not prototypically
282+
* inherit from its parent scope. This is useful when creating reusable components, which should not
283+
* accidentally read or modify data in the parent scope. Note that an isolate scope
284+
* directive without a `template` or `templateUrl` will not apply the isolate scope
285+
* to its children elements.
284286
*
285287
* The 'isolate' scope object hash defines a set of local scope properties derived from attributes on the
286288
* directive's element. These local properties are useful for aliasing values for templates. The keys in

0 commit comments

Comments
 (0)