Skip to content

Commit f66836f

Browse files
snicolaimhevery
authored andcommitted
doc(devguide) - Fix typos and small grammatical errors in the developer guide.
1 parent 0ccc445 commit f66836f

9 files changed

+20
-20
lines changed

docs/content/guide/bootstrap.ngdoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ initialization.
2424
</html>
2525
</pre>
2626

27-
* Place the `script` tag at the buttom of the page. Placing script tags at the end of the page
27+
* Place the `script` tag at the bottom of the page. Placing script tags at the end of the page
2828
improves app load time because the HTML loading is not blocked by loading of the `angular.js`
2929
script. You can get the latest bits from {@link http://code.angularjs.org}. Please don't link
3030
your production code to this URL, as it will expose a security hole on your site. For
@@ -34,12 +34,12 @@ initialization.
3434
* Choose: `angular-[version].min.js` for a compressed and obfuscated file, suitable for use in
3535
production.
3636
* Place `ng-app` to the root of your application, typically on the `<html>` tag if you want
37-
anugular to auto-bootstrap your application.
37+
angular to auto-bootstrap your application.
3838

3939
<html ng-app>
4040

4141
* If you choose to use the old style directive syntax `ng:` then include xml-namespace in `html`
42-
to make IE happy. (This is here for historical resons, and we no longer recomend use of
42+
to make IE happy. (This is here for historical reasons, and we no longer recommend use of
4343
`ng:`.)
4444

4545
<html xmlns:ng="http://angularjs.org">

docs/content/guide/dev_guide.services.$location.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -331,11 +331,11 @@ to entry point of your application (e.g. index.html)
331331

332332
### Crawling your app
333333

334-
If you want your AJAX application to be indexed by web crawlers, you rill need to add the following
334+
If you want your AJAX application to be indexed by web crawlers, you will need to add the following
335335
meta tag to the HEAD section of your document:
336336
<pre><meta name="fragment" content="!" /></pre>
337337

338-
This statement causes a crawler to request links with empty `_escaped_fragment_` parameter so that
338+
This statement causes a crawler to request links with an empty `_escaped_fragment_` parameter so that
339339
your server can recognize the crawler and serve it HTML snapshots. For more information about this
340340
technique, see {@link http://code.google.com/web/ajaxcrawling/docs/specification.html Making AJAX
341341
Applications Crawlable}.

docs/content/guide/dev_guide.services.testing_services.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ it('should clear messages after alert', function() {
5555
* {@link dev_guide.services.understanding_services Understanding Angular Services}
5656
* {@link dev_guide.services.creating_services Creating Angular Services}
5757
* {@link dev_guide.services.managing_dependencies Managing Service Dependencies}
58-
* {@link dev_guide.services.injecting_controllers Injecting Services Into Conrollers}
58+
* {@link dev_guide.services.injecting_controllers Injecting Services Into Controllers}
5959

6060
## Related API
6161

docs/content/guide/dev_guide.templates.databinding.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ because first the template (which is the uncompiled HTML along with any addition
2424
directives) is compiled on the browser, and second, the compilation step produces a live view. We
2525
say live because any changes to the view are immediately reflected in the model, and any changes in
2626
the model are propagated to the view. This makes the model always the single-source-of-truth for
27-
the application state, greatly simplifying the programing model for the developer. You can think of
27+
the application state, greatly simplifying the programming model for the developer. You can think of
2828
the view as simply an instant projection of your model.
2929

3030
Because the view is just a projection of the model, the controller is completely separated from the

docs/content/guide/dev_guide.unit-testing.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ this may seem obvious it usually is very difficult to be able to call an individ
1616
typical project. The reason is that the developers often time mix concerns, and they end up with a
1717
piece of code which does everything. It reads the data from XHR, it sorts it and then it
1818
manipulates the DOM. With angular we try to make it easy for you to do the right thing, and so we
19-
provide dependency injection for your XHR (which you can mock out) and we crated abstraction which
19+
provide dependency injection for your XHR (which you can mock out) and we created abstraction which
2020
allow you to sort your model without having to resort to manipulating the DOM. So that in the end,
2121
it is easy to write a sort function which sorts some data, so that your test can create a data set,
2222
apply the function, and assert that the resulting model is in the correct order. The test does not

docs/content/guide/directive.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ simplified as:
271271
});
272272
</pre>
273273

274-
Most directives concern themselves only with instances not with template transformations allowing
274+
Most directives concern themselves only with instances, not with template transformations, allowing
275275
further simplification:
276276

277277
<pre>
@@ -342,7 +342,7 @@ compiler}. The attributes are:
342342
`scope: { localFn:'increment()' }`, then isolate scope property `localFn` will point to
343343
a function wrapper for the `increment()` expression. Often it's desirable to pass data from
344344
the isolate scope via an expression and to the parent scope, this can be done by passing a
345-
map of local variable names and values into the expression wrapper fn. For example if the
345+
map of local variable names and values into the expression wrapper fn. For example, if the
346346
expression is `increment(amount)` then we can specify the amount value by calling the
347347
`localFn` as `localFn({amount: 22})`.
348348

docs/content/guide/expression.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@description
44

55
Expressions are JavaScript-like code snippets that are usually placed in bindings such as `{{
6-
expression }}`. Expressions are process by the {@link api/ng.$parse $parse}
6+
expression }}`. Expressions are processed by {@link api/ng.$parse $parse}
77
service.
88

99
For example, these are all valid expressions in angular:

docs/content/guide/ie.ngdoc

+5-5
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The **important** parts are:
5656

5757
# Long Version
5858

59-
IE has an issues with element tag names which are not standard HTML tag names. These fall into two
59+
IE has issues with element tag names which are not standard HTML tag names. These fall into two
6060
categories, and each category has its own fix.
6161

6262
* If the tag name starts with `my:` prefix than it is considered an XML namespace and must
@@ -65,7 +65,7 @@ categories, and each category has its own fix.
6565
* If the tag has no `:` but it is not a standard HTML tag, then it must be pre-created using
6666
`document.createElement('my-tag')`
6767

68-
* If you have are planning on styling the custom tag with CSS selectors, then it must be
68+
* If you are planning on styling the custom tag with CSS selectors, then it must be
6969
pre-created using `document.createElement('my-tag')` regardless of XML namespace.
7070

7171

@@ -88,7 +88,7 @@ result):
8888
</html>
8989
</pre>
9090

91-
It should pares into the following DOM:
91+
It should parse into the following DOM:
9292

9393
<pre>
9494
#document
@@ -122,12 +122,12 @@ In IE, the behavior is that the `BODY` element has three children:
122122

123123
3. A corrupt self closing `/mytag`. This is corrupt since element names are not allowed to have
124124
the `/` character. Furthermore this closing element should not be part of the DOM since it is
125-
only used to delimitate the structure of the DOM.
125+
only used to delineate the structure of the DOM.
126126

127127

128128
## CSS Styling of Custom Tag Names
129129

130-
The to make CSS selector work with custom elements the custom element name must be shived with the
130+
To make CSS selectors work with custom elements, the custom element name must be pre-created with
131131
`document.createElement('my-tag')` regardless of XML namespace.
132132

133133
<pre>

docs/content/guide/scope.ngdoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@ directive listens on DOM events, such as {@link
231231
api/ng.directive:ngClick `ng-click`} it must evaluate the
232232
expression inside the `$apply` method.
233233

234-
After evaluating the expression `$apply` method performs a {@link
235-
api/ng.$rootScope.Scope#$digest `$digest`}. In $digest phase the scope examines all
236-
of the `$watch` expressions and compares them with previous value. This dirty checking, is done
234+
After evaluating the expression, the `$apply` method performs a {@link
235+
api/ng.$rootScope.Scope#$digest `$digest`}. In the $digest phase the scope examines all
236+
of the `$watch` expressions and compares them with the previous value. This dirty checking is done
237237
asynchronously. This means that assignment such as `$scope.username="angular"` will not
238238
immediately cause a `$watch` to be notified, instead the `$watch` notification is delayed until
239239
the `$digest` phase. This delay is desirable, since it coalesces multiple model updates into one
@@ -250,7 +250,7 @@ the `$digest` phase. This delay is desirable, since it coalesces multiple model
250250
2. **Watcher registration**
251251

252252
During template linking directives register {@link
253-
api/ng.$rootScope.Scope#$watch watches} on the scope. This watches will be
253+
api/ng.$rootScope.Scope#$watch watches} on the scope. These watches will be
254254
used to propagate model values to the DOM.
255255

256256
3. **Model mutation**

0 commit comments

Comments
 (0)