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

Commit 2473412

Browse files
jamiekrugbtford
authored andcommitted
fix(docs): Fix spelling, punctuation and grammatical errors on dev guide compiler page.
1 parent 1f2d500 commit 2473412

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

docs/content/guide/compiler.ngdoc

+10-12
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@ Here is a directive which makes any element draggable. Notice the `draggable` at
104104
<file name="index.html">
105105
<span draggable>Drag ME</span>
106106
</file>
107-
</file>
107+
</example>
108108

109109

110-
The presence of `draggable` attribute an any element gives the element new behavior. The beauty of
111-
this approach is that we have thought the browser a new trick, we have extended the vocabulary of
112-
what browser understands in a way, which is natural to anyone who is familiar with HTML
110+
The presence of `draggable` attribute on any element gives the element new behavior. The beauty of
111+
this approach is that we have taught the browser a new trick. We have extended the vocabulary of
112+
what the browser understands in a way, which is natural to anyone who is familiar with HTML
113113
principles.
114114

115115

@@ -121,23 +121,21 @@ an element.
121121

122122
<img src="img/One_Way_Data_Binding.png">
123123

124-
This means that any changes to the data, need to be re-merged with the template and then
124+
This means that any changes to the data need to be re-merged with the template and then
125125
`innerHTML`ed into the DOM. Some of the issues are: reading user input and merging it with data,
126126
clobbering user input by overwriting it, managing the whole update process, and lack of behavior
127127
expressiveness.
128128

129-
Angular is different. Angular compiler consumes DOM with directives, not string templates. The
130-
result is a linking function, which when combined with a scope model results in live view. The
131-
view and scope model bindings are transparent, no action from the developer is needed to update
129+
Angular is different. The Angular compiler consumes the DOM with directives, not string templates.
130+
The result is a linking function, which when combined with a scope model results in a live view. The
131+
view and scope model bindings are transparent. No action from the developer is needed to update
132132
the view. And because no `innerHTML` is used there are no issues of clobbering user input.
133-
Furthermore, angular directives can contain not just text bindings, but behavioral constructs as
133+
Furthermore, Angular directives can contain not just text bindings, but behavioral constructs as
134134
well.
135135

136136
<img src="img/Two_Way_Data_Binding.png">
137137

138-
The Angular approach produces stable DOM. This means that the DOM element instance bound to model
138+
The Angular approach produces a stable DOM. This means that the DOM element instance bound to a model
139139
item instance does not change for the lifetime of the binding. This means that the code can get
140140
hold of the elements and register event handlers and know that the reference will not be destroyed
141141
by template data merge.
142-
143-

0 commit comments

Comments
 (0)