@@ -56,10 +56,10 @@ Try out the Live Preview above, and then let's walk through the example and desc
56
56
57
57
This looks like normal HTML, with some new markup. In Angular, a file like this is called a
58
58
<a name="template">"{@link templates template}"</a>. When Angular starts your application, it parses and
59
- processes this new markup from the template using the so called <a name="compiler">"{@link compiler compiler}"</a>.
59
+ processes this new markup from the template using the so- called <a name="compiler">"{@link compiler compiler}"</a>.
60
60
The loaded, transformed and rendered DOM is then called the <a name="view">"view"</a>.
61
61
62
- The first kind of new markup are the so called <a name="directive">"{@link directive directives}"</a>.
62
+ The first kind of new markup are the so- called <a name="directive">"{@link directive directives}"</a>.
63
63
They apply special behavior to attributes or elements in the HTML. In the example above we use the
64
64
{@link ng.directive:ngApp `ng-app`} attribute, which is linked to a directive that automatically
65
65
initializes our application. Angular also defines a directive for the {@link ng.directive:input `input`}
@@ -89,7 +89,7 @@ A filter formats the value of an expression for display to the user.
89
89
In the example above, the filter {@link ng.filter:currency `currency`} formats a number
90
90
into an output that looks like money.
91
91
92
- The important thing in the example is that angular provides _live_ bindings:
92
+ The important thing in the example is that Angular provides _live_ bindings:
93
93
Whenever the input values change, the value of the expressions are automatically
94
94
recalculated and the DOM is updated with their values.
95
95
The concept behind this is <a name="databinding">"{@link databinding two-way data binding}"</a>.
@@ -150,13 +150,13 @@ different currencies and also pay the invoice.
150
150
151
151
What changed?
152
152
153
- First, there is a new JavaScript file that contains a so called <a name="controller">"{@link controller controller}"</a>.
153
+ First, there is a new JavaScript file that contains a so- called <a name="controller">"{@link controller controller}"</a>.
154
154
More exactly, the file contains a constructor function that creates the actual controller instance.
155
155
The purpose of controllers is to expose variables and functionality to expressions and directives.
156
156
157
157
Besides the new file that contains the controller code we also added a
158
158
{@link ng.directive:ngController `ng-controller`} directive to the HTML.
159
- This directive tells angular that the new `InvoiceController` is responsible for the element with the directive
159
+ This directive tells Angular that the new `InvoiceController` is responsible for the element with the directive
160
160
and all of the element's children.
161
161
The syntax `InvoiceController as invoice` tells Angular to instantiate the controller
162
162
and save it in the variable `invoice` in the current scope.
@@ -263,7 +263,7 @@ services, ...) is created and wired using dependency injection. Within Angular,
263
263
the DI container is called the <a name="injector">"{@link di injector}"</a>.
264
264
265
265
To use DI, there needs to be a place where all the things that should work together are registered.
266
- In Angular, this is the purpose of the so called <a name="module">"{@link module modules}"</a>.
266
+ In Angular, this is the purpose of the so- called <a name="module">"{@link module modules}"</a>.
267
267
When Angular starts, it will use the configuration of the module with the name defined by the `ng-app` directive,
268
268
including the configuration of all modules that this module depends on.
269
269
0 commit comments