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

Commit 780351d

Browse files
floftargkalpak
authored andcommitted
docs(*): fix typos
Closes #15577
1 parent a50bb0b commit 780351d

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

CHANGELOG.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ previous behaviour simply add a comment:
10511051
**Note:** Everything described below affects **IE11 only**.
10521052

10531053
Previously, consecutive text nodes would not get merged if they had no parent. They will now, which
1054-
might have unexpectd side effects in the following cases:
1054+
might have unexpected side effects in the following cases:
10551055

10561056
1. Passing an array or jqLite/jQuery collection of parent-less text nodes to `$compile` directly:
10571057

@@ -1205,7 +1205,7 @@ In cases where `ngView` was loaded asynchronously, `$route` (and its dependencie
12051205
might also have been instantiated asynchronously. After this change, `$route` (and its dependencies)
12061206
will - by default - be instantiated early on.
12071207

1208-
Although this is not expected to have unwanted side-effects in normal application bebavior, it may
1208+
Although this is not expected to have unwanted side-effects in normal application behavior, it may
12091209
affect your unit tests: When testing a module that (directly or indirectly) depends on `ngRoute`, a
12101210
request will be made for the default route's template. If not properly "trained", `$httpBackend`
12111211
will complain about this unexpected request.
@@ -2438,7 +2438,7 @@ affects custom directives that might have been reading options for their own pur
24382438
**Note:** Everything described below affects **IE11 only**.
24392439

24402440
Previously, consecutive text nodes would not get merged if they had no parent. They will now, which
2441-
might have unexpectd side effects in the following cases:
2441+
might have unexpected side effects in the following cases:
24422442

24432443
1. Passing an array or jqLite/jQuery collection of parent-less text nodes to `$compile` directly:
24442444

@@ -2588,7 +2588,7 @@ In cases where `ngView` was loaded asynchronously, `$route` (and its dependencie
25882588
might also have been instantiated asynchronously. After this change, `$route` (and its dependencies)
25892589
will - by default - be instantiated early on.
25902590

2591-
Although this is not expected to have unwanted side-effects in normal application bebavior, it may
2591+
Although this is not expected to have unwanted side-effects in normal application behavior, it may
25922592
affect your unit tests: When testing a module that (directly or indirectly) depends on `ngRoute`, a
25932593
request will be made for the default route's template. If not properly "trained", `$httpBackend`
25942594
will complain about this unexpected request.
@@ -12303,7 +12303,7 @@ Contains only these fixes cherry-picked from [v1.2.0rc1](#1.2.0rc1).
1230312303
- due to [39841f2e](https://github.com/angular/angular.js/commit/39841f2ec9b17b3b2920fd1eb548d444251f4f56),
1230412304
Interpolations inside DOM event handlers are disallowed.
1230512305

12306-
DOM event handlers execute arbitrary Javascript code. Using an interpolation for such handlers means that the interpolated value is a JS string that is evaluated. Storing or generating such strings is error prone and leads to XSS vulnerabilities. On the other hand, `ngClick` and other Angular specific event handlers evaluate Angular expressions in non-window (Scope) context which makes them much safer.
12306+
DOM event handlers execute arbitrary JavaScript code. Using an interpolation for such handlers means that the interpolated value is a JS string that is evaluated. Storing or generating such strings is error prone and leads to XSS vulnerabilities. On the other hand, `ngClick` and other Angular specific event handlers evaluate Angular expressions in non-window (Scope) context which makes them much safer.
1230712307

1230812308
To migrate the code follow the example below:
1230912309

docs/content/guide/migration.ngdoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ will be removed in a future version, so we strongly recommend migrating your app
417417
rely on it as soon as possible.
418418

419419
Initialization logic that relies on bindings being present should be put in the controller's
420-
`$onInit()` method, which is guarranteed to always be called _after_ the bindings have been
420+
`$onInit()` method, which is guaranteed to always be called _after_ the bindings have been
421421
assigned.
422422

423423
Before:
@@ -502,7 +502,7 @@ running at `https://docs.angularjs.org` then the following will fail:
502502
<link href="{{ 'http://mydomain.org/unsafe.css' }}" rel="stylesheet" />
503503
```
504504

505-
By default, only URLs with the same domain and prototocl as the application document are considered
505+
By default, only URLs with the same domain and protocol as the application document are considered
506506
safe in the `RESOURCE_URL` context. To use URLs from other domains and/or protocols, you may either
507507
whitelist them or wrap them into a trusted value by calling `$sce.trustAsResourceUrl(url)`.
508508

@@ -1170,7 +1170,7 @@ with an unencoded `;` character.
11701170
Previously, in cases where `ngView` was loaded asynchronously, `$route` (and its dependencies) might
11711171
also have been instantiated asynchronously.
11721172

1173-
Although this is not expected to have unwanted side-effects in normal application bebavior, it may
1173+
Although this is not expected to have unwanted side-effects in normal application behavior, it may
11741174
affect your unit tests: When testing a module that (directly or indirectly) depends on `ngRoute`, a
11751175
request will be made for the default route's template. If not properly "trained", `$httpBackend`
11761176
will complain about this unexpected request. You can restore the previous behavior (and avoid
@@ -2606,7 +2606,7 @@ See [38deedd6](https://github.com/angular/angular.js/commit/38deedd6e3d806eb8262
26062606

26072607
### Interpolations inside DOM event handlers are now disallowed
26082608

2609-
DOM event handlers execute arbitrary Javascript code. Using an interpolation for such handlers
2609+
DOM event handlers execute arbitrary JavaScript code. Using an interpolation for such handlers
26102610
means that the interpolated value is a JS string that is evaluated. Storing or generating such
26112611
strings is error prone and leads to XSS vulnerabilities. On the other hand, `ngClick` and other
26122612
Angular specific event handlers evaluate Angular expressions in non-window (Scope) context which

0 commit comments

Comments
 (0)