Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bf816d3

Browse files
docs(guide/directive): improve access to isolate scope information
Closes angular#5329
1 parent 74b4ab8 commit bf816d3

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

docs/content/guide/directive.ngdoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,8 @@ that you explicitly pass in.
506506

507507
<div class="alert alert-warning">
508508
**Note:** Normally, a scope prototypically inherits from its parent. An isolated scope does not.
509+
See the {@link guide/directive#creating-custom-directives_demo_isolating-the-scope-of-a-directive
510+
"Isolating the Scope of a Directive"} section for more information about isolate scopes.
509511
</div>
510512

511513
<div class="alert alert-success">

docs/content/guide/scope.ngdoc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@ watch {@link guide/expression expressions} and propagate events.
1818
propagate any model changes through the system into the view from outside of the "Angular
1919
realm" (controllers, services, Angular event handlers).
2020

21-
- Scopes can be nested to isolate application components while providing access to shared model
22-
properties. A scope (prototypically) inherits properties from its parent scope.
21+
- Scopes can be nested to limit access to the properties of application components while providing
22+
access to shared model properties. Nested scopes are either "child scopes" or "isolate scopes".
23+
A "child scope" (prototypically) inherits properties from its parent scope. An "isolate scope"
24+
does not. See {@link
25+
guide/directive#creating-custom-directives_demo_isolating-the-scope-of-a-directive isolated
26+
scopes} for more information.
2327

2428
- Scopes provide context against which {@link guide/expression expressions} are evaluated. For
2529
example `{{username}}` expression is meaningless, unless it is evaluated against a specific
@@ -306,6 +310,8 @@ api/ng.directive:ngController ng-controller} and {@link
306310
api/ng.directive:ngRepeat ng-repeat}, create new child scopes
307311
and attach the child scope to the corresponding DOM element. You can retrieve a scope for any DOM
308312
element by using an `angular.element(aDomElement).scope()` method call.
313+
See the {@link guide/directive#creating-custom-directives_demo_isolating-the-scope-of-a-directive
314+
directives guide} for more information about isolate scopes.
309315

310316
### Controllers and Scopes
311317

0 commit comments

Comments
 (0)