diff options
| author | Pete Bacon Darwin | 2013-12-18 21:13:17 +0000 |
|---|---|---|
| committer | Pete Bacon Darwin | 2013-12-18 21:14:12 +0000 |
| commit | bf816d3ade9e72629521f78a81e5843bce876987 (patch) | |
| tree | 6a05b1a947bb0aef8422abbc3b6a57f6d5dcb74b /docs | |
| parent | 74b4ab88677469386d0ea1e162554c6af372b898 (diff) | |
| download | angular.js-bf816d3ade9e72629521f78a81e5843bce876987.tar.bz2 | |
docs(guide/directive): improve access to isolate scope information
Closes #5329
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/content/guide/directive.ngdoc | 2 | ||||
| -rw-r--r-- | docs/content/guide/scope.ngdoc | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/docs/content/guide/directive.ngdoc b/docs/content/guide/directive.ngdoc index b3925bfc..035993d7 100644 --- a/docs/content/guide/directive.ngdoc +++ b/docs/content/guide/directive.ngdoc @@ -506,6 +506,8 @@ that you explicitly pass in. <div class="alert alert-warning"> **Note:** Normally, a scope prototypically inherits from its parent. An isolated scope does not. +See the {@link guide/directive#creating-custom-directives_demo_isolating-the-scope-of-a-directive +"Isolating the Scope of a Directive"} section for more information about isolate scopes. </div> <div class="alert alert-success"> diff --git a/docs/content/guide/scope.ngdoc b/docs/content/guide/scope.ngdoc index da35a1b8..4e395328 100644 --- a/docs/content/guide/scope.ngdoc +++ b/docs/content/guide/scope.ngdoc @@ -18,8 +18,12 @@ watch {@link guide/expression expressions} and propagate events. propagate any model changes through the system into the view from outside of the "Angular realm" (controllers, services, Angular event handlers). - - Scopes can be nested to isolate application components while providing access to shared model - properties. A scope (prototypically) inherits properties from its parent scope. + - Scopes can be nested to limit access to the properties of application components while providing + access to shared model properties. Nested scopes are either "child scopes" or "isolate scopes". + A "child scope" (prototypically) inherits properties from its parent scope. An "isolate scope" + does not. See {@link + guide/directive#creating-custom-directives_demo_isolating-the-scope-of-a-directive isolated + scopes} for more information. - Scopes provide context against which {@link guide/expression expressions} are evaluated. For example `{{username}}` expression is meaningless, unless it is evaluated against a specific @@ -306,6 +310,8 @@ api/ng.directive:ngController ng-controller} and {@link api/ng.directive:ngRepeat ng-repeat}, create new child scopes and attach the child scope to the corresponding DOM element. You can retrieve a scope for any DOM element by using an `angular.element(aDomElement).scope()` method call. +See the {@link guide/directive#creating-custom-directives_demo_isolating-the-scope-of-a-directive +directives guide} for more information about isolate scopes. ### Controllers and Scopes |
