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

Commit e9427a8

Browse files
jsorefNarretz
authored andcommitted
docs(*): fix typos
* a * allows * angularytics * animate * architecting * asynchronously * attribute * back * browser * callback * component * delimited * dependencies * dynamically * empty * encoded * explicitly * expression * fails * guarantees * hierarchy * highlight * identifiers * immediately * infinite * initialized * inputting * instance * interprets * linking * location * misformed * numerically * occurring * overridden * overwritten * parameters * Pluralsight * precedence * primitive * properly * prototypically * representation * response * separately * separator * should * specifying * supported * template * thrown * transclude * transclusion * transitions * trigger * useful
1 parent db31021 commit e9427a8

34 files changed

+90
-90
lines changed

CHANGELOG.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -1778,7 +1778,7 @@ the built-in pattern validator:
17781778
/**
17791779
* The built-in directive will call our overwritten validator
17801780
* (see below). We just need to update the regex.
1781-
* The preLink fn guaranetees our observer is called first.
1781+
* The preLink fn guarantees our observer is called first.
17821782
*/
17831783
if (isString(regex) && regex.length > 0) {
17841784
regex = new RegExp('^' + regex + '$');
@@ -1894,7 +1894,7 @@ the built-in pattern validator:
18941894
/**
18951895
* The built-in directive will call our overwritten validator
18961896
* (see below). We just need to update the regex.
1897-
* The preLink fn guaranetees our observer is called first.
1897+
* The preLink fn guarantees our observer is called first.
18981898
*/
18991899
if (isString(regex) && regex.length > 0) {
19001900
regex = new RegExp('^' + regex + '$');
@@ -3768,7 +3768,7 @@ behavior is undefined.
37683768
([96c61fe7](https://github.com/angular/angular.js/commit/96c61fe756d7d3db011818bf0925e3d86ffff8ce),
37693769
[#10278](https://github.com/angular/angular.js/issues/10278))
37703770
- **orderBy:**
3771-
- make object-to-primtiive behavior work for objects with null prototype
3771+
- make object-to-primitive behavior work for objects with null prototype
37723772
([3aa57528](https://github.com/angular/angular.js/commit/3aa5752894419b4638d5c934879258fa6a1c0d07))
37733773
- maintain order in array of objects when predicate is not provided
37743774
([8bfeddb5](https://github.com/angular/angular.js/commit/8bfeddb5d671017f4a21b8b46334ac816710b143),
@@ -5925,7 +5925,7 @@ Closes #7336
59255925

59265926

59275927
Previously, it was possible for an action passed to $watch
5928-
to be a string, interpreted as an angular expresison. This is no longer supported.
5928+
to be a string, interpreted as an angular expression. This is no longer supported.
59295929
The action now has to be a function.
59305930
Passing an action to $watch is still optional.
59315931

@@ -7826,7 +7826,7 @@ The animation mock module has been renamed from `mock.animate` to `ngAnimateMock
78267826
After:
78277827

78287828
```
7829-
// POST, PUT and PATCH default headers must be specified seperately,
7829+
// POST, PUT and PATCH default headers must be specified separately,
78307830
// as they do not share data.
78317831
$httpProvider.defaults.headers.post =
78327832
$httpProvider.defaults.headers.put =
@@ -8612,7 +8612,7 @@ There are no breaking changes in this release (promise!)
86128612
([31c56f54](https://github.com/angular/angular.js/commit/31c56f540045b5270f5b8e235873da855caf3486),
86138613
[#4145](https://github.com/angular/angular.js/issues/4145),
86148614
[#3964](https://github.com/angular/angular.js/issues/3964))
8615-
- **ngTransclude:** detect ngTranslude usage without a transclusion directive
8615+
- **ngTransclude:** detect ngTransclude usage without a transclusion directive
86168616
([5a1a6b86](https://github.com/angular/angular.js/commit/5a1a6b86a8dbcd8aa4fe9c59fad8d005eead686c),
86178617
[#3759](https://github.com/angular/angular.js/issues/3759))
86188618

@@ -8680,7 +8680,7 @@ There are no breaking changes in this release (promise!)
86808680
- ensure transition-property is not changed when only keyframe animations are in use
86818681
([2df3c9f5](https://github.com/angular/angular.js/commit/2df3c9f58def9584455f7c4bfdabbd12aab58bf9),
86828682
[#3933](https://github.com/angular/angular.js/issues/3933))
8683-
- avoid completing the animation asynchronously unless CSS transtiions/animations are present
8683+
- avoid completing the animation asynchronously unless CSS transitions/animations are present
86848684
([2a63dfa6](https://github.com/angular/angular.js/commit/2a63dfa6cc7889888f4296fff2944e74ff30b3af),
86858685
[#4023](https://github.com/angular/angular.js/issues/4023),
86868686
[#3940](https://github.com/angular/angular.js/issues/3940))
@@ -10322,7 +10322,7 @@ This release also contains all bug fixes available in [1.0.2](#1.0.2).
1032210322

1032310323
## Features
1032410324

10325-
- **$http:** support custom reponseType
10325+
- **$http:** support custom responseType
1032610326
([e0a54f6b](https://github.com/angular/angular.js/commit/e0a54f6b206dc2b6595f2bc3a17c5932e7477545),
1032710327
[#1013](https://github.com/angular/angular.js/issues/1013))
1032810328
- **$interpolate:**
@@ -10469,14 +10469,14 @@ This release also contains all bug fixes available in [1.0.2](#1.0.2).
1046910469
- allow defining route async dependencies as promises and defer route change until all promises
1047010470
are resolved
1047110471
([885fb0dd](https://github.com/angular/angular.js/commit/885fb0dd0743859a8985c23e4d0c1855a2be711e))
10472-
- rename template -> tempalteUrl and add support for inline templates
10472+
- rename template -> templateUrl and add support for inline templates
1047310473
([0a6e464a](https://github.com/angular/angular.js/commit/0a6e464a93d9a1e76a624b356054ce9ca4015f55))
1047410474
- **$compile:** simplify isolate scope bindings and introduce true two-way data-binding between
1047510475
parent scope and isolate scope
1047610476
([c3a41ff9](https://github.com/angular/angular.js/commit/c3a41ff9fefe894663c4d4f40a83794521deb14f))
1047710477
- **$injector:** provide API for retrieving function annotations
1047810478
([4361efb0](https://github.com/angular/angular.js/commit/4361efb03b79e71bf0cea92b94ff377ed718bad4))
10479-
- **$location:** add $locatonChange[start|success] event - since events are cancelable, it's now
10479+
- **$location:** add $locationChange[start|success] event - since events are cancelable, it's now
1048010480
possible to cancel route and location changes.
1048110481
([92a2e180](https://github.com/angular/angular.js/commit/92a2e1807657c69e1372106b0727675a30f4cbd7))
1048210482
- **$rootElement:** expose application root element as $rootElement service
@@ -10799,7 +10799,7 @@ This release also contains all bug fixes available in [1.0.2](#1.0.2).
1079910799
([06d09550](https://github.com/angular/angular.js/commit/06d0955074f79de553cc34fbf945045dc458e064))
1080010800
- **booleanAttrs:** always convert the model to boolean before setting the element property
1080110801
([dcb8e076](https://github.com/angular/angular.js/commit/dcb8e0767fbf0a7a55f3b0045fd01b2532ea5441))
10802-
- **form:** preperly clean up when invalid widget is removed
10802+
- **form:** properly clean up when invalid widget is removed
1080310803
([21b77ad5](https://github.com/angular/angular.js/commit/21b77ad5c231ab0e05eb89f22005f7ed8d40a6c1))
1080410804
- **ngHref:** copy even if no binding
1080510805
([2f5dba48](https://github.com/angular/angular.js/commit/2f5dba488e855bcdbb9304aa809efcb9de7b43e9))
@@ -10941,7 +10941,7 @@ We removed two useless features:
1094110941
([ee5a5352](https://github.com/angular/angular.js/commit/ee5a5352fd4b94cedee6ef20d4bf2d43ce77e00b),
1094210942
[#806](https://github.com/angular/angular.js/issues/806))
1094310943
- **directives:**
10944-
- **select:** multiselect failes to update view on selection insert
10944+
- **select:** multiselect fails to update view on selection insert
1094510945
([6ecac8e7](https://github.com/angular/angular.js/commit/6ecac8e71a84792a434d21db2c245b3648c55f18))
1094610946
- **ngForm:** alias name||ngForm
1094710947
([823adb23](https://github.com/angular/angular.js/commit/823adb231995e917bc060bfa49453e2a96bac2b6))

docs/content/guide/animations.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ By default, any `ngAnimate` enabled directives will assume any transition / anim
384384
element are part of an `ngAnimate` animation. This can lead to problems when the styles are actually
385385
for animations that are independent of `ngAnimate`.
386386

387-
For example, an element acts as a loading spinner. It has an inifinite css animation on it, and also an
387+
For example, an element acts as a loading spinner. It has an infinite css animation on it, and also an
388388
{@link ngIf `ngIf`} directive, for which no animations are defined:
389389

390390
```css

docs/content/guide/component-router.ngdoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ Here is a table of the main concepts used in the Component Router.
3232
| Routing Component | An Angular component with a RouteConfig and an associated Router. |
3333
| RouteDefinition | Defines how the router should navigate to a component based on a URL pattern. |
3434
| ngOutlet | The directive (`<ng-outlet>`) that marks where the router should display a view. |
35-
| ngLink | The directive (`ng-link="..."`) for binding a clickable HTML element to a route, via a Link Paramaters Array. |
36-
| Link Parameters Array | An array that the router inteprets into a routing instruction. We can bind a RouterLink to that array or pass the array as an argument to the Router.navigate method. |
35+
| ngLink | The directive (`ng-link="..."`) for binding a clickable HTML element to a route, via a Link Parameters Array. |
36+
| Link Parameters Array | An array that the router interprets into a routing instruction. We can bind a RouterLink to that array or pass the array as an argument to the Router.navigate method. |
3737

3838

3939
## Component-based Applications
@@ -929,7 +929,7 @@ function HeroListComponent(heroService) {
929929
}
930930
```
931931

932-
Finally, we can use this information to higlight the current hero in the template.
932+
Finally, we can use this information to highlight the current hero in the template.
933933

934934
```html
935935
<div ng-repeat="hero in $ctrl.heroes"

docs/content/guide/external-resources.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ This is a collection of external, 3rd party resources for learning and developin
4141
##### General
4242

4343
* **Javascript minification: **[Background](http://thegreenpizza.github.io/2013/05/25/building-minification-safe-angular.js-applications/), [ng-annotate automation tool](https://github.com/olov/ng-annotate)
44-
* **Analytics and Logging:** [Angularyitcs (Google Analytics)](http://ngmodules.org/modules/angularytics), [Angulartics (Analytics)](https://github.com/luisfarzati/angulartics), [Logging Client-Side Errors](http://www.bennadel.com/blog/2542-Logging-Client-Side-Errors-With-AngularJS-And-Stacktrace-js.htm)
44+
* **Analytics and Logging:** [Angularytics (Google Analytics)](http://ngmodules.org/modules/angularytics), [Angulartics (Analytics)](https://github.com/luisfarzati/angulartics), [Logging Client-Side Errors](http://www.bennadel.com/blog/2542-Logging-Client-Side-Errors-With-AngularJS-And-Stacktrace-js.htm)
4545
* **SEO:** [By hand](http://www.yearofmoo.com/2012/11/angularjs-and-seo.html), [prerender.io](http://prerender.io/), [Brombone](http://www.brombone.com/), [SEO.js](http://getseojs.com/), [SEO4Ajax](http://www.seo4ajax.com/)
4646

4747
##### Server-Specific
@@ -138,7 +138,7 @@ You can find a larger list of Angular external libraries at [ngmodules.org](http
138138
[CodeSchool](https://www.codeschool.com/courses/shaping-up-with-angular-js)
139139
* **Paid online:**
140140
[The Angular Course (115 videos that show you how to build a full app)](http://watchandcode.com/courses/angular-course/),
141-
[Pluralsite (3 courses)](http://www.pluralsight.com/training/Courses/Find?highlight=true&searchTerm=angularjs),
141+
[Pluralsight (3 courses)](http://www.pluralsight.com/training/Courses/Find?highlight=true&searchTerm=angularjs),
142142
[Tuts+](https://tutsplus.com/course/easier-js-apps-with-angular/),
143143
[lynda.com](http://www.lynda.com/AngularJS-tutorials/Up-Running-AngularJS/133318-2.html),
144144
[WintellectNOW (4 lessons)](http://www.wintellectnow.com/Course/Detail/mastering-angularjs),

docs/content/guide/interpolation.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ can be used with `ngAttr` instead. The following is a list of known problematic
111111
### Dynamically changing an interpolated value
112112

113113
You should avoid dynamically changing the content of an interpolated string (e.g. attribute value
114-
or text node). Your changes are likely to be overwriten, when the original string gets evaluated.
114+
or text node). Your changes are likely to be overwritten, when the original string gets evaluated.
115115
This restriction applies to both directly changing the content via JavaScript or indirectly using a
116116
directive.
117117

118118
For example, you should not use interpolation in the value of the `style` attribute (e.g.
119119
`style="color: {{ 'orange' }}; font-weight: {{ 'bold' }};"`) **and** at the same time use a
120-
directive that changes the content of that attributte, such as `ngStyle`.
120+
directive that changes the content of that attribute, such as `ngStyle`.
121121

122122
### Embedding interpolation markup inside expressions
123123

docs/content/guide/migration.ngdoc

+4-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ which drives many of these changes.
3333
## Migrating from 1.4 to 1.5
3434

3535
Angular 1.5 takes a big step towards preparing developers for a smoother transition to Angular 2 in
36-
the future. Architecturing your applications using components, multi-slot transclusion, one-way
36+
the future. Architecting your applications using components, multi-slot transclusion, one-way
3737
bindings in isolate scopes, using lifecycle hooks in directive controllers and relying on native ES6
3838
features (such as classes and arrow functions) are now all possible with Angular 1.5.
3939

@@ -605,7 +605,7 @@ The new API on `$cookies` is as follows:
605605
* `getAll`
606606
* `remove`
607607

608-
You must explictly use the methods above in order to access cookie data. This also means that
608+
You must explicitly use the methods above in order to access cookie data. This also means that
609609
you can no longer watch the properties on `$cookies` to detect changes
610610
that occur on the browsers cookies.
611611

@@ -1125,11 +1125,12 @@ and "$dependentProvider" would have actually accomplished something and changed
11251125
app. This is no longer possible within a single module.
11261126

11271127

1128+
11281129
### Filters (`orderBy`)
11291130

11301131
- due to [a097aa95](https://github.com/angular/angular.js/commit/a097aa95b7c78beab6d1b7d521c25f7d9d7843d9),
11311132
`orderBy` now treats `null` values (which in JavaScript have type `object`) as having a string
1132-
represenation of `'null'`.
1133+
representation of `'null'`.
11331134

11341135

11351136
### Animation (`ngAnimate`)

docs/content/misc/faq.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ If you want to apply a directive to each inner piece of the repeat, put it on a
247247

248248
### `$rootScope` exists, but it can be used for evil
249249

250-
Scopes in Angular form a hierarchy, prototypally inheriting from a root scope at the top of the tree.
250+
Scopes in Angular form a hierarchy, prototypically inheriting from a root scope at the top of the tree.
251251
Usually this can be ignored, since most views have a controller, and therefore a scope, of their own.
252252

253253
Occasionally there are pieces of data that you want to make global to the whole app.

docs/content/tutorial/step_02.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ To learn more about Angular scopes, see the {@link ng.$rootScope.Scope angular s
135135

136136
<div class="alert alert-warning">
137137
<p>
138-
Angular scopes prototypally inherit from their parent scope, all the way up to the *root scope*
138+
Angular scopes prototypically inherit from their parent scope, all the way up to the *root scope*
139139
of the application. As a result, assigning values directly on the scope makes it easy to share
140140
data across different parts of the page and create interactive applications.
141141
While this approach works for prototypes and smaller applications, it quickly leads to tight

docs/content/tutorial/step_09.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ modularity.
324324

325325
The takeaway here is:
326326

327-
* Always be explicit about the dependecies of a sub-module. Do not rely on dependencies inherited
327+
* Always be explicit about the dependencies of a sub-module. Do not rely on dependencies inherited
328328
from a parent module (because that parent module might not be there some day).
329329

330330
<div class="alert alert-success">

src/ng/compile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@
402402
* * defines the parent to which the `cloneLinkingFn` will add the cloned elements.
403403
* * default: `$element.parent()` resp. `$element` for `transclude:'element'` resp. `transclude:true`.
404404
* * only needed for transcludes that are allowed to contain non html elements (e.g. SVG elements)
405-
* and when the `cloneLinkinFn` is passed,
405+
* and when the `cloneLinkingFn` is passed,
406406
* as those elements need to created and cloned in a special way when they are defined outside their
407407
* usual containers (e.g. like `<svg>`).
408408
* * See also the `directive.templateNamespace` property.
@@ -2199,7 +2199,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
21992199
}
22002200

22012201
/**
2202-
* Given a node with an directive-start it collects all of the siblings until it finds
2202+
* Given a node with a directive-start it collects all of the siblings until it finds
22032203
* directive-end.
22042204
* @param node
22052205
* @param attrStart

src/ng/directive/input.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,7 @@ function textInputType(scope, element, attr, ctrl, $sniffer, $browser) {
12481248
function baseInputType(scope, element, attr, ctrl, $sniffer, $browser) {
12491249
var type = lowercase(element[0].type);
12501250

1251-
// In composition mode, users are still inputing intermediate text buffer,
1251+
// In composition mode, users are still inputting intermediate text buffer,
12521252
// hold the listener until composition is done.
12531253
// More about composition events: https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent
12541254
if (!$sniffer.android) {

src/ngAnimate/animateChildrenDirective.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* of the children's parents are currently animating. By default, when an element has an active `enter`, `leave`, or `move`
1313
* (structural) animation, child elements that also have an active structural animation are not animated.
1414
*
15-
* Note that even if `ngAnimteChildren` is set, no child animations will run when the parent element is removed from the DOM (`leave` animation).
15+
* Note that even if `ngAnimateChildren` is set, no child animations will run when the parent element is removed from the DOM (`leave` animation).
1616
*
1717
*
1818
* @param {string} ngAnimateChildren If the value is empty, `true` or `on`,

test/BinderSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ describe('Binder', function() {
357357
});
358358
});
359359

360-
it('ShoulIgnoreVbNonBindable', inject(function($rootScope, $compile) {
360+
it('ShouldIgnoreVbNonBindable', inject(function($rootScope, $compile) {
361361
element = $compile(
362362
'<div>{{a}}' +
363363
'<div ng-non-bindable>{{a}}</div>' +

test/auto/injectorSpec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ describe('injector', function() {
124124
expect($injector).not.toBe(providerInjector);
125125
}));
126126

127-
it('should have an false strictDi property', inject(function($injector) {
127+
it('should have a false strictDi property', inject(function($injector) {
128128
expect($injector.strictDi).toBe(false);
129129
}));
130130

@@ -944,7 +944,7 @@ describe('injector', function() {
944944
});
945945

946946

947-
it('should throw usefull error on wrong argument type]', function() {
947+
it('should throw useful error on wrong argument type]', function() {
948948
expect(function() {
949949
$injector.invoke({});
950950
}).toThrowMinErr('ng', 'areq', 'Argument \'fn\' is not a function, got Object');

test/ng/browserSpecs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ describe('browser', function() {
215215
});
216216

217217
describe('outstanding requests', function() {
218-
it('should process callbacks immedietly with no outstanding requests', function() {
218+
it('should process callbacks immediately with no outstanding requests', function() {
219219
var callback = jasmine.createSpy('callback');
220220
browser.notifyWhenNoOutstandingRequests(callback);
221221
expect(callback).toHaveBeenCalled();
@@ -224,7 +224,7 @@ describe('browser', function() {
224224

225225

226226
describe('defer', function() {
227-
it('should execute fn asynchroniously via setTimeout', function() {
227+
it('should execute fn asynchronously via setTimeout', function() {
228228
var callback = jasmine.createSpy('deferred');
229229

230230
browser.defer(callback);

0 commit comments

Comments
 (0)