Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 6aac690

Browse files
John Fletcherpkozlowski-opensource
John Fletcher
authored andcommitted
docs(guide): minor English corrections to the Directive guide
1 parent 9e96d98 commit 6aac690

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/content/guide/directive.ngdoc

+5-5
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ links a specific instance of the {@link api/ng.$rootScope.Scope scope} and the s
144144
instance of an `li` is performed.
145145

146146
{@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
148148
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
150150
of the directives contained in the `li` element, ready to be attached to a specific clone of the `li`
151151
element. At runtime the {@link api/ng.directive:ngRepeat ngRepeat}
152152
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
549549

550550
This will not render properly, unless we do some scope magic.
551551

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
555555
widget. To solve the mapping issue we use the `locals` to create local variables which the template
556556
expects as follows:
557557

0 commit comments

Comments
 (0)