@@ -144,9 +144,9 @@ links a specific instance of the {@link api/ng.$rootScope.Scope scope} and the s
144
144
instance of an `li` is performed.
145
145
146
146
{@link api/ng.directive:ngRepeat ngRepeat} works by preventing the
147
- compilation process form descending into the `li` element. Instead the {@link
147
+ compilation process from descending into the `li` element. Instead the {@link
148
148
api/ng.directive:ngRepeat ngRepeat} directive compiles `li`
149
- separately. The result of of the `li` element compilation is a linking function which contains all
149
+ separately. The result of the `li` element compilation is a linking function which contains all
150
150
of the directives contained in the `li` element, ready to be attached to a specific clone of the `li`
151
151
element. At runtime the {@link api/ng.directive:ngRepeat ngRepeat}
152
152
watches the expression and as items are added to the array it clones the `li` element, creates a
@@ -549,9 +549,9 @@ Here is an example of what the template definition for the `dialog` widget may l
549
549
550
550
This will not render properly, unless we do some scope magic.
551
551
552
- The first issue we have to solve is that the dialog box template expect `title` to be defined, but
553
- the place of instantiation would like to bind to `username`. Furthermore the buttons expect `onOk`
554
- as well as `onCancel` functions to be present in the scope. This limits the usefulness of the
552
+ The first issue we have to solve is that the dialog box template expects `title` to be defined, but
553
+ the place of instantiation would like to bind to `username`. Furthermore the buttons expect the
554
+ `onOk` and `onCancel` functions to be present in the scope. This limits the usefulness of the
555
555
widget. To solve the mapping issue we use the `locals` to create local variables which the template
556
556
expects as follows:
557
557
0 commit comments