Skip to content

Commit a57141f

Browse files
unknownvojtajina
unknown
authored andcommitted
docs(guide): correct couple of typos
1 parent 1904596 commit a57141f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

docs/content/guide/directive.ngdoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ to save a clean copy of the `li` element for cloning purposes and as new `action
133133
the template `li` element needs to be cloned and inserted into `ul`. But cloning the `li` element
134134
is not enough. It also needs to compile the `li` so that its directives such as
135135
`{{action.descriptions}}` evaluate against the right {@link api/angular.module.ng.$rootScope.Scope
136-
scope}. A naive method would be to simply insert a copy of the `li` elemnt and then compile it.
136+
scope}. A naive method would be to simply insert a copy of the `li` element and then compile it.
137137
But compiling on every `li` element clone would be slow, since the compilation requires that we
138138
traverse the DOM tree and look for directives and execute them. If we put the compilation inside a
139-
repeater which needs to unroll 100 items we would quickly run into performance problem.
139+
repeater which needs to unroll 100 items we would quickly run into performance problems.
140140

141141
The solution is to break the compilation process into two phases the compile phase where all of
142142
the directives are identified and sorted by priority, and a linking phase where any work which
@@ -227,7 +227,7 @@ In this example we will build a directive which displays the current time.
227227

228228
# Writing directives (long version)
229229

230-
The full skeleton of the directive is shown here:
230+
An example skeleton of the directive is shown here, for the complete list see below.
231231

232232
<pre>
233233
var myModule = angular.module(...);

docs/content/guide/module.ngdoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# What is a Module?
66

77
Most applications have a main method which instantiates, wires, and bootstraps the application.
8-
Angular apps don't have a main method, instead the modules serves the purpose of declaratively
8+
Angular apps don't have a main method, instead modules serve the purpose of declaratively
99
specifying how an application should be bootstrapped. There are several advantages to this
1010
approach:
1111

@@ -19,7 +19,7 @@ approach:
1919

2020
# The Basics
2121

22-
Ok, I'm in a hurry how do i get a Hello World module working?
22+
Ok, I'm in a hurry. How do I get a Hello World module working?
2323

2424
Important things to notice:
2525

@@ -62,9 +62,9 @@ that you break your application to multiple modules like this:
6262
initialization code.
6363

6464
The reason for this breakup is that in your tests, it is often necessary to ignore the
65-
initialization code, which tends to be difficult to test. By putting it into separate module it
65+
initialization code, which tends to be difficult to test. By putting it into a separate module it
6666
can be easily ignored in tests. The tests can also be more focused by only loading the modules
67-
which are relevant to tests.
67+
that are relevant to tests.
6868

6969
The above is only a suggestion, so feel free to tailor it to your needs.
7070

docs/content/tutorial/step_00.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ being the element on which the `ngApp` directive was defined.
204204
evaluated by Angular in the context of the current model scope, rather than within the scope of
205205
the global context (`window`).
206206

207-
As expected, once this template is processed by Angular, the html page will contains text:
207+
As expected, once this template is processed by Angular, the html page contains the text:
208208
"Nothing here yet!".
209209

210210
## Bootstrapping AngularJS apps
@@ -226,7 +226,7 @@ There are 3 important things that happen during the app bootstrap:
226226

227227

228228
Once an application is bootstrapped, it will then wait for incoming browser events (such as mouse
229-
click, key press or incoming HTTP response) that might change the model. Once such event occurs,
229+
click, key press or incoming HTTP response) that might change the model. Once such an event occurs,
230230
Angular detects if it caused any model changes and if changes are found, Angular will reflect them
231231
in the view by updating all of the affected bindings.
232232

0 commit comments

Comments
 (0)