diff options
| author | Matt Rohrer | 2012-09-26 15:30:55 +0200 |
|---|---|---|
| committer | Brian Ford | 2013-01-17 19:36:14 -0500 |
| commit | d4312b731a6d795f1afef83cccd4ec1a5a11e0e4 (patch) | |
| tree | d895b06904eb7dcd2c7ee05e4d2cd88c46bc0439 /docs/content/guide/scope.ngdoc | |
| parent | 66f051386e153f10bd2751a7cafb61404799adee (diff) | |
| download | angular.js-d4312b731a6d795f1afef83cccd4ec1a5a11e0e4.tar.bz2 | |
docs(guide): minor grammar fixes
Diffstat (limited to 'docs/content/guide/scope.ngdoc')
| -rw-r--r-- | docs/content/guide/scope.ngdoc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/content/guide/scope.ngdoc b/docs/content/guide/scope.ngdoc index 5425215f..b2dd5e53 100644 --- a/docs/content/guide/scope.ngdoc +++ b/docs/content/guide/scope.ngdoc @@ -81,7 +81,7 @@ Logically the rendering of `{{greeting}}` involves: You can think of the scope and its properties as the data which is used to render the view. The scope is the single source-of-truth for all things view related. -From testability, the separation of the controller and the view is desirable, because it allows us +From a testability point of view, the separation of the controller and the view is desirable, because it allows us to test the behavior without being distracted by the rendering details. <pre> @@ -151,7 +151,7 @@ This example illustrates scopes in application, and prototypical inheritance of </file> </example> -Notice that the Angular automatically places `ng-scope` class on elements where scopes are +Notice that Angular automatically places `ng-scope` class on elements where scopes are attached. The `<style>` definition in this example highlights in red the new scope locations. The child scopes are necessary because the repeater evaluates `{{employee.name}}` expression, but depending on which scope the expression is evaluated it produces different result. Similarly the @@ -166,7 +166,7 @@ purposes. (It is unlikely that one would need to retrieve scopes in this way ins application.) The location where the root scope is attached to the DOM is defined by the location of {@link api/ng.directive:ngApp `ng-app`} directive. Typically `ng-app` is placed an the `<html>` element, but it can be placed on other elements as well, if, -for example, only a portion of the view needs to be controlled by angular. +for example, only a portion of the view needs to be controlled by Angular. To examine the scope in the debugger: @@ -218,7 +218,7 @@ api/ng.$rootScope.Scope#$emit emitted} to scope parents. ## Scope Life Cycle -The normal flow of browser receiving an event is that it executes a corresponding JavaScript +The normal flow of a browser receiving an event is that it executes a corresponding JavaScript callback. Once the callback completes the browser re-renders the DOM and returns to waiting for more events. |
