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

Commit 5cce6e2

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 305e201 commit 5cce6e2

34 files changed

+93
-93
lines changed

CHANGELOG.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ elem.attr(booleanAttrName, null);
231231
- **[4e3624](https://github.com/angular/angular.js/commit/4e3624552284d0e725bf6262b2e468cd2c7682fa)**: remove the attribute for `.attr(attribute, null)`
232232

233233
Invoking `elem.attr(attributeName, null)` would set the
234-
`attributeName` atribute value to a string `"null"`, now it removes the
234+
`attributeName` attribute value to a string `"null"`, now it removes the
235235
attribute instead.
236236

237237
To migrate the code follow the example below:
@@ -595,7 +595,7 @@ ancestor.
595595
It is possible that an `ngModelOptions` directive that does not set a property,
596596
has an ancestor ngModelOptions that does set this property to a value other than
597597
`undefined`. This would cause the `ngModel` and input controls below this `ngModelOptions`
598-
directive to display different behaviour. This is fixed by explictly setting the
598+
directive to display different behaviour. This is fixed by explicitly setting the
599599
property in the `ngModelOptions` to prevent it from inheriting from the ancestor.
600600

601601
For example if you had the following HTML:
@@ -667,7 +667,7 @@ might have unexpectd side effects in the following cases:
667667

668668
```js
669669
// Assuming the following component:
670-
.compoent('someThing', {
670+
.component('someThing', {
671671
template: '<ng-transclude><!-- Default content goes here --></ng-transclude>'
672672
transclude: {
673673
ignored: 'veryImportantContent'
@@ -2919,7 +2919,7 @@ the built-in pattern validator:
29192919
/**
29202920
* The built-in directive will call our overwritten validator
29212921
* (see below). We just need to update the regex.
2922-
* The preLink fn guaranetees our observer is called first.
2922+
* The preLink fn guarantees our observer is called first.
29232923
*/
29242924
if (isString(regex) && regex.length > 0) {
29252925
regex = new RegExp('^' + regex + '$');
@@ -3035,7 +3035,7 @@ the built-in pattern validator:
30353035
/**
30363036
* The built-in directive will call our overwritten validator
30373037
* (see below). We just need to update the regex.
3038-
* The preLink fn guaranetees our observer is called first.
3038+
* The preLink fn guarantees our observer is called first.
30393039
*/
30403040
if (isString(regex) && regex.length > 0) {
30413041
regex = new RegExp('^' + regex + '$');
@@ -4909,7 +4909,7 @@ behavior is undefined.
49094909
([96c61fe7](https://github.com/angular/angular.js/commit/96c61fe756d7d3db011818bf0925e3d86ffff8ce),
49104910
[#10278](https://github.com/angular/angular.js/issues/10278))
49114911
- **orderBy:**
4912-
- make object-to-primtiive behavior work for objects with null prototype
4912+
- make object-to-primitive behavior work for objects with null prototype
49134913
([3aa57528](https://github.com/angular/angular.js/commit/3aa5752894419b4638d5c934879258fa6a1c0d07))
49144914
- maintain order in array of objects when predicate is not provided
49154915
([8bfeddb5](https://github.com/angular/angular.js/commit/8bfeddb5d671017f4a21b8b46334ac816710b143),
@@ -7066,7 +7066,7 @@ Closes #7336
70667066

70677067

70687068
Previously, it was possible for an action passed to $watch
7069-
to be a string, interpreted as an angular expresison. This is no longer supported.
7069+
to be a string, interpreted as an angular expression. This is no longer supported.
70707070
The action now has to be a function.
70717071
Passing an action to $watch is still optional.
70727072

@@ -8967,7 +8967,7 @@ The animation mock module has been renamed from `mock.animate` to `ngAnimateMock
89678967
After:
89688968

89698969
```
8970-
// POST, PUT and PATCH default headers must be specified seperately,
8970+
// POST, PUT and PATCH default headers must be specified separately,
89718971
// as they do not share data.
89728972
$httpProvider.defaults.headers.post =
89738973
$httpProvider.defaults.headers.put =
@@ -9753,7 +9753,7 @@ There are no breaking changes in this release (promise!)
97539753
([31c56f54](https://github.com/angular/angular.js/commit/31c56f540045b5270f5b8e235873da855caf3486),
97549754
[#4145](https://github.com/angular/angular.js/issues/4145),
97559755
[#3964](https://github.com/angular/angular.js/issues/3964))
9756-
- **ngTransclude:** detect ngTranslude usage without a transclusion directive
9756+
- **ngTransclude:** detect ngTransclude usage without a transclusion directive
97579757
([5a1a6b86](https://github.com/angular/angular.js/commit/5a1a6b86a8dbcd8aa4fe9c59fad8d005eead686c),
97589758
[#3759](https://github.com/angular/angular.js/issues/3759))
97599759

@@ -9821,7 +9821,7 @@ There are no breaking changes in this release (promise!)
98219821
- ensure transition-property is not changed when only keyframe animations are in use
98229822
([2df3c9f5](https://github.com/angular/angular.js/commit/2df3c9f58def9584455f7c4bfdabbd12aab58bf9),
98239823
[#3933](https://github.com/angular/angular.js/issues/3933))
9824-
- avoid completing the animation asynchronously unless CSS transtiions/animations are present
9824+
- avoid completing the animation asynchronously unless CSS transitions/animations are present
98259825
([2a63dfa6](https://github.com/angular/angular.js/commit/2a63dfa6cc7889888f4296fff2944e74ff30b3af),
98269826
[#4023](https://github.com/angular/angular.js/issues/4023),
98279827
[#3940](https://github.com/angular/angular.js/issues/3940))
@@ -11463,7 +11463,7 @@ This release also contains all bug fixes available in [1.0.2](#1.0.2).
1146311463

1146411464
## Features
1146511465

11466-
- **$http:** support custom reponseType
11466+
- **$http:** support custom responseType
1146711467
([e0a54f6b](https://github.com/angular/angular.js/commit/e0a54f6b206dc2b6595f2bc3a17c5932e7477545),
1146811468
[#1013](https://github.com/angular/angular.js/issues/1013))
1146911469
- **$interpolate:**
@@ -11610,14 +11610,14 @@ This release also contains all bug fixes available in [1.0.2](#1.0.2).
1161011610
- allow defining route async dependencies as promises and defer route change until all promises
1161111611
are resolved
1161211612
([885fb0dd](https://github.com/angular/angular.js/commit/885fb0dd0743859a8985c23e4d0c1855a2be711e))
11613-
- rename template -> tempalteUrl and add support for inline templates
11613+
- rename template -> templateUrl and add support for inline templates
1161411614
([0a6e464a](https://github.com/angular/angular.js/commit/0a6e464a93d9a1e76a624b356054ce9ca4015f55))
1161511615
- **$compile:** simplify isolate scope bindings and introduce true two-way data-binding between
1161611616
parent scope and isolate scope
1161711617
([c3a41ff9](https://github.com/angular/angular.js/commit/c3a41ff9fefe894663c4d4f40a83794521deb14f))
1161811618
- **$injector:** provide API for retrieving function annotations
1161911619
([4361efb0](https://github.com/angular/angular.js/commit/4361efb03b79e71bf0cea92b94ff377ed718bad4))
11620-
- **$location:** add $locatonChange[start|success] event - since events are cancelable, it's now
11620+
- **$location:** add $locationChange[start|success] event - since events are cancelable, it's now
1162111621
possible to cancel route and location changes.
1162211622
([92a2e180](https://github.com/angular/angular.js/commit/92a2e1807657c69e1372106b0727675a30f4cbd7))
1162311623
- **$rootElement:** expose application root element as $rootElement service
@@ -11940,7 +11940,7 @@ This release also contains all bug fixes available in [1.0.2](#1.0.2).
1194011940
([06d09550](https://github.com/angular/angular.js/commit/06d0955074f79de553cc34fbf945045dc458e064))
1194111941
- **booleanAttrs:** always convert the model to boolean before setting the element property
1194211942
([dcb8e076](https://github.com/angular/angular.js/commit/dcb8e0767fbf0a7a55f3b0045fd01b2532ea5441))
11943-
- **form:** preperly clean up when invalid widget is removed
11943+
- **form:** properly clean up when invalid widget is removed
1194411944
([21b77ad5](https://github.com/angular/angular.js/commit/21b77ad5c231ab0e05eb89f22005f7ed8d40a6c1))
1194511945
- **ngHref:** copy even if no binding
1194611946
([2f5dba48](https://github.com/angular/angular.js/commit/2f5dba488e855bcdbb9304aa809efcb9de7b43e9))
@@ -12082,7 +12082,7 @@ We removed two useless features:
1208212082
([ee5a5352](https://github.com/angular/angular.js/commit/ee5a5352fd4b94cedee6ef20d4bf2d43ce77e00b),
1208312083
[#806](https://github.com/angular/angular.js/issues/806))
1208412084
- **directives:**
12085-
- **select:** multiselect failes to update view on selection insert
12085+
- **select:** multiselect fails to update view on selection insert
1208612086
([6ecac8e7](https://github.com/angular/angular.js/commit/6ecac8e71a84792a434d21db2c245b3648c55f18))
1208712087
- **ngForm:** alias name||ngForm
1208812088
([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
@@ -137,7 +137,7 @@ You can find a larger list of Angular external libraries at [ngmodules.org](http
137137
[CodeAcademy](http://www.codecademy.com/courses/javascript-advanced-en-2hJ3J/0/1),
138138
[CodeSchool](https://www.codeschool.com/courses/shaping-up-with-angular-js)
139139
* **Paid online:**
140-
[Pluralsite (3 courses)](http://www.pluralsight.com/training/Courses/Find?highlight=true&searchTerm=angularjs),
140+
[Pluralsight (3 courses)](http://www.pluralsight.com/training/Courses/Find?highlight=true&searchTerm=angularjs),
141141
[Tuts+](https://tutsplus.com/course/easier-js-apps-with-angular/),
142142
[lynda.com](http://www.lynda.com/AngularJS-tutorials/Up-Running-AngularJS/133318-2.html),
143143
[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
@@ -120,13 +120,13 @@ can be used with `ngAttr` instead. The following is a list of known problematic
120120
### Dynamically changing an interpolated value
121121

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

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

131131
### Embedding interpolation markup inside expressions
132132

docs/content/guide/migration.ngdoc

+3-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

@@ -1129,7 +1129,7 @@ app. This is no longer possible within a single module.
11291129

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

11341134

11351135
### 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.
@@ -2222,7 +2222,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
22222222
}
22232223

22242224
/**
2225-
* Given a node with an directive-start it collects all of the siblings until it finds
2225+
* Given a node with a directive-start it collects all of the siblings until it finds
22262226
* directive-end.
22272227
* @param node
22282228
* @param attrStart

src/ng/directive/input.js

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

1237-
// In composition mode, users are still inputing intermediate text buffer,
1237+
// In composition mode, users are still inputting intermediate text buffer,
12381238
// hold the listener until composition is done.
12391239
// More about composition events: https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent
12401240
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)