From 943b2ed0b25847012c5d5bf6c376f0311a5808ff Mon Sep 17 00:00:00 2001 From: rsperberg Date: Mon, 3 Nov 2014 18:14:45 -0500 Subject: [PATCH 1/2] docs(guide/Conceptual Overview): spell "Angular" consistently with cap "A" In these two instances, Angular was spelled with a lower-case "a." All occurrences should be spelled consistently. --- docs/content/guide/concepts.ngdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/guide/concepts.ngdoc b/docs/content/guide/concepts.ngdoc index face0a6bcd95..103f690614c7 100644 --- a/docs/content/guide/concepts.ngdoc +++ b/docs/content/guide/concepts.ngdoc @@ -89,7 +89,7 @@ A filter formats the value of an expression for display to the user. In the example above, the filter {@link ng.filter:currency `currency`} formats a number into an output that looks like money. -The important thing in the example is that angular provides _live_ bindings: +The important thing in the example is that Angular provides _live_ bindings: Whenever the input values change, the value of the expressions are automatically recalculated and the DOM is updated with their values. The concept behind this is "{@link databinding two-way data binding}". @@ -156,7 +156,7 @@ The purpose of controllers is to expose variables and functionality to expressio Besides the new file that contains the controller code we also added a {@link ng.directive:ngController `ng-controller`} directive to the HTML. -This directive tells angular that the new `InvoiceController` is responsible for the element with the directive +This directive tells Angular that the new `InvoiceController` is responsible for the element with the directive and all of the element's children. The syntax `InvoiceController as invoice` tells Angular to instantiate the controller and save it in the variable `invoice` in the current scope. From ebc87a7469f3706c1851facdf7f398c628f9c88f Mon Sep 17 00:00:00 2001 From: rsperberg Date: Mon, 3 Nov 2014 18:22:44 -0500 Subject: [PATCH 2/2] docs(guide/Conceptual Overview): add hyphen to "so-called" Compound adjectives preceding the noun they modify should generally be hyphenated (cf Chicago Manual of Style, 6.40), e.g., "so-called directives." --- docs/content/guide/concepts.ngdoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/content/guide/concepts.ngdoc b/docs/content/guide/concepts.ngdoc index 103f690614c7..6e0e5fc2564f 100644 --- a/docs/content/guide/concepts.ngdoc +++ b/docs/content/guide/concepts.ngdoc @@ -56,10 +56,10 @@ Try out the Live Preview above, and then let's walk through the example and desc This looks like normal HTML, with some new markup. In Angular, a file like this is called a "{@link templates template}". When Angular starts your application, it parses and -processes this new markup from the template using the so called "{@link compiler compiler}". +processes this new markup from the template using the so-called "{@link compiler compiler}". The loaded, transformed and rendered DOM is then called the "view". -The first kind of new markup are the so called "{@link directive directives}". +The first kind of new markup are the so-called "{@link directive directives}". They apply special behavior to attributes or elements in the HTML. In the example above we use the {@link ng.directive:ngApp `ng-app`} attribute, which is linked to a directive that automatically initializes our application. Angular also defines a directive for the {@link ng.directive:input `input`} @@ -150,7 +150,7 @@ different currencies and also pay the invoice. What changed? -First, there is a new JavaScript file that contains a so called "{@link controller controller}". +First, there is a new JavaScript file that contains a so-called "{@link controller controller}". More exactly, the file contains a constructor function that creates the actual controller instance. The purpose of controllers is to expose variables and functionality to expressions and directives. @@ -263,7 +263,7 @@ services, ...) is created and wired using dependency injection. Within Angular, the DI container is called the "{@link di injector}". To use DI, there needs to be a place where all the things that should work together are registered. -In Angular, this is the purpose of the so called "{@link module modules}". +In Angular, this is the purpose of the so-called "{@link module modules}". When Angular starts, it will use the configuration of the module with the name defined by the `ng-app` directive, including the configuration of all modules that this module depends on.