From bf816d3ade9e72629521f78a81e5843bce876987 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Wed, 18 Dec 2013 21:13:17 +0000 Subject: docs(guide/directive): improve access to isolate scope information Closes #5329 --- docs/content/guide/scope.ngdoc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'docs/content/guide/scope.ngdoc') 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 -- cgit v1.2.3