diff options
| author | Igor Minar | 2011-06-06 08:50:35 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-06-06 22:52:02 -0700 |
| commit | 7f1e2e48467f80cc083d24b44f088620e4e7bcb6 (patch) | |
| tree | 731a91366c5780985be6d4c5ddbe34e307d5cb70 /docs/content/guide/dev_guide.scopes.ngdoc | |
| parent | 5533e48dead5cff3107e72ee80bf0f19df77c1e9 (diff) | |
| download | angular.js-7f1e2e48467f80cc083d24b44f088620e4e7bcb6.tar.bz2 | |
new batch of docs
Diffstat (limited to 'docs/content/guide/dev_guide.scopes.ngdoc')
| -rw-r--r-- | docs/content/guide/dev_guide.scopes.ngdoc | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/docs/content/guide/dev_guide.scopes.ngdoc b/docs/content/guide/dev_guide.scopes.ngdoc new file mode 100644 index 00000000..730ac348 --- /dev/null +++ b/docs/content/guide/dev_guide.scopes.ngdoc @@ -0,0 +1,51 @@ +@workInProgress +@ngdoc overview +@name Developer Guide: Angular Scopes +@description + + + + +An angular scope is a JavaScript type defined by angular. Instances of this type are objects that +serve as the context within which all model and controller methods live and get evaluated. + + +Angular links scope objects to specific points in a compiled (processed) template. This linkage +provides the contexts in which angular creates data-bindings between the model and the view. You +can think of angular scope objects as the medium through which the model, view, and controller +communicate. + + +In addition to providing the context in which data is evaluated, angular scope objects watch for +model changes. The scope objects also notify all components interested in any model changes (for +example, functions registered through {@link api/angular.scope.$watch $watch}, bindings created by +{@link api/angular.directive.ng:bind ng:bind}, or HTML input elements). + + +Angular scope objects are responsible for: + + +* Gluing the model, controller and view template together. +* Providing the mechanism to watch for model changes ({@link api/angular.scope.$watch}). +* Notifying interested components when the model changes ({@link api/angular.scope.$eval}). +* Providing the context in which all controller functions and angular expressions are evaluated. + + + + +## Related Topics + + +* {@link dev_guide.scopes.understanding_scopes Understanding Scopes} +* {@link dev_guide.scopes.working_scopes Working With Scopes} +* {@link dev_guide.scopes.controlling_scopes Applying Controllers to Scopes} +* {@link dev_guide.scopes.updating_scopes Updating Scopes} + + +## Related API + + +* {@link api/angular.scope Angular Scope API} + + + |
