Skip to content

Commit c023c85

Browse files
tyson-bensonmhevery
authored andcommitted
docs(typos): fix typos in dev guide
1 parent 5318588 commit c023c85

11 files changed

+30
-19
lines changed

.gitattributes

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Standard to msysgit
5+
*.doc diff=astextplain
6+
*.DOC diff=astextplain
7+
*.docx diff=astextplain
8+
*.DOCX diff=astextplain
9+
*.dot diff=astextplain
10+
*.DOT diff=astextplain
11+
*.pdf diff=astextplain
12+
*.PDF diff=astextplain
13+
*.rtf diff=astextplain
14+
*.RTF diff=astextplain

docs/content/guide/bootstrap.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ initialization.
2525
</pre>
2626

2727
* Place the `script` tag at the buttom of the page. Placing script tags at the end of the page
28-
improves app load time becouse the HTML loading is not blocked by loading of the `angular.js`
28+
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
3131
experimental development linking to our site is fine.

docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ describe('state', function() {
253253
var mainCtrl = $controller(MainCtrl, {$scope: mainScope});
254254
childScope = mainScope.$new();
255255
var childCtrl = $controller(ChildCtrl, {$scope: childScope});
256-
babyScope = $rootScope.$new();
256+
babyScope = childCtrl.$new();
257257
var babyCtrl = $controller(BabyCtrl, {$scope: babyScope});
258258
}));
259259

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
@name Developer Guide: Angular Services: Creating Services
33
@description
44

5-
While angular offers several useful services, for any nontrivial application you'll find it useful
5+
While Angular offers several useful services, for any nontrivial application you'll find it useful
66
to write your own custom services. To do this you begin by registering a service factory function
77
with a module either via the {@link api/angular.module Module#factory api} or directly
88
via the {@link api/AUTO.$provide $provide} api inside of module config function.
99

10-
All angular services participate in {@link di dependency injection (DI)} by registering
10+
All Angular services participate in {@link di dependency injection (DI)} by registering
1111
themselves with Angular's DI system (injector) under a `name` (id) as well as by declaring
1212
dependencies which need to be provided for the factory function of the registered service. The
1313
ability to swap dependencies for mocks/stubs/dummies in tests allows for services to be highly
@@ -76,17 +76,17 @@ angular.module('myModule', [], function($provide) {
7676

7777
# Instantiating Angular Services
7878

79-
All services in Angular are instantiates services lazily, this means that a service will be created
79+
All services in Angular are instantiated lazily. This means that a service will be created
8080
only when it is needed for instantiation of a service or an application component that depends on it.
81-
In other words, angular won't instantiate lazy services unless they are requested directly or
81+
In other words, Angular won't instantiate lazy services unless they are requested directly or
8282
indirectly by the application.
8383

8484

8585
# Services as singletons
8686

87-
Lastly, it is important to realize that all angular services are application singletons. This means
88-
that there is only one instance of a given service per injector. Since angular is lethally allergic
89-
to the global state, it is possible to create multiple injectors, each with its own instance of a
87+
Lastly, it is important to realize that all Angular services are application singletons. This means
88+
that there is only one instance of a given service per injector. Since Angular is lethally allergic
89+
to global state, it is possible to create multiple injectors, each with its own instance of a
9090
given service, but that is rarely needed, except in tests where this property is crucially
9191
important.
9292

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@name Developer Guide: Angular Services: Testing Angular Services
33
@description
44

5-
Following is a unit test for the service in the example in {@link
5+
The following is a unit test for the 'notify' service in the 'Dependencies' example in {@link
66
dev_guide.services.creating_services Creating Angular Services}. The unit test example uses Jasmine
77
spy (mock) instead of a real browser alert.
88

docs/content/guide/dev_guide.templates.css-styling.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Angular sets these CSS classes. It is up to your application to provide useful s
99

1010
* `ng-invalid`, `ng-valid`
1111
- **Usage:** angular applies this class to an input widget element if that element's input does
12-
notpass validation. (see {@link api/ng.directive:input input} directive).
12+
not pass validation. (see {@link api/ng.directive:input input} directive).
1313

1414
* `ng-pristine`, `ng-dirty`
1515
- **Usage:** angular {@link api/ng.directive:input input} directive applies `ng-pristine` class

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ displaying it to the user. You can pass expressions through a chain of filters l
1414
The expression evaluator simply passes the value of name to
1515
{@link api/ng.filter:uppercase uppercase filter}.
1616

17-
In addition to formatting data, filters can also modify the DOM. This allows filters to handle
18-
tasks such as conditionally applying CSS styles to filtered output.
19-
2017

2118
## Related Topics
2219

docs/content/guide/di.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ For example:
165165
});
166166
</pre>
167167

168-
Results in code bloat do to the need of temporary variable:
168+
Results in code bloat due to the need of temporary variable:
169169
<pre>
170170
var greeterFactory = function(renamed$window) {
171171
...;

docs/content/guide/forms.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ The following example shows how to add two-way data-binding to contentEditable e
300300
});
301301

302302
// model -> view
303-
ctrl.render = function(value) {
303+
ctrl.$render = function(value) {
304304
elm.html(value);
305305
};
306306

docs/content/guide/overview.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,6 @@ Angular frees you from the following pain:
202202

203203
# Watch a Presentation About Angular
204204

205-
Here is a presentation on angular from May 2012.
205+
Here is a presentation on Angular from May 2012.
206206

207207
<iframe width="560" height="315" src="http://www.youtube.com/embed/bfrn5VNpwsg" frameborder="0" allowfullscreen></iframe>

0 commit comments

Comments
 (0)