Skip to content

Commit de90314

Browse files
vlajosmatsko
authored andcommitted
1 parent f739f75 commit de90314

File tree

62 files changed

+114
-110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+114
-110
lines changed

CHANGELOG.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ If that is the case, you should be able to track the old value directly by savin
356356
* **common:** don't convert null to a string when flushing a mock request ([#21417](https://github.com/angular/angular/issues/21417)) ([8b14488](https://github.com/angular/angular/commit/8b14488)), closes [#20744](https://github.com/angular/angular/issues/20744)
357357
* **core:** fix [#20582](https://github.com/angular/angular/issues/20582), don't need to wrap zone in location change listener ([#20640](https://github.com/angular/angular/issues/20640)) ([f791e9f](https://github.com/angular/angular/commit/f791e9f))
358358
* **core:** fix proper propagation of subscriptions in EventEmitter ([#22016](https://github.com/angular/angular/issues/22016)) ([e81606c](https://github.com/angular/angular/commit/e81606c)), closes [#21999](https://github.com/angular/angular/issues/21999)
359-
* **core:** should check Zone existance when scheduleMicroTask ([#20656](https://github.com/angular/angular/issues/20656)) ([3a86940](https://github.com/angular/angular/commit/3a86940))
359+
* **core:** should check Zone existence when scheduleMicroTask ([#20656](https://github.com/angular/angular/issues/20656)) ([3a86940](https://github.com/angular/angular/commit/3a86940))
360360
* **forms:** publish missing types ([#19941](https://github.com/angular/angular/issues/19941)) ([2707012](https://github.com/angular/angular/commit/2707012))
361361
* **ivy:** generate correct interpolations ([#21946](https://github.com/angular/angular/issues/21946)) ([3cc1d76](https://github.com/angular/angular/commit/3cc1d76))
362362
* **ivy:** generate lifecycle pattern ([#21865](https://github.com/angular/angular/issues/21865)) ([f816666](https://github.com/angular/angular/commit/f816666))
@@ -387,7 +387,7 @@ If that is the case, you should be able to track the old value directly by savin
387387
* **common:** don't convert null to a string when flushing a mock request ([#21417](https://github.com/angular/angular/issues/21417)) ([c4fb696](https://github.com/angular/angular/commit/c4fb696)), closes [#20744](https://github.com/angular/angular/issues/20744)
388388
* **core:** fix [#20582](https://github.com/angular/angular/issues/20582), don't need to wrap zone in location change listener ([#22007](https://github.com/angular/angular/issues/22007)) ([ce51ea9](https://github.com/angular/angular/commit/ce51ea9))
389389
* **core:** fix proper propagation of subscriptions in EventEmitter ([#22016](https://github.com/angular/angular/issues/22016)) ([c6645e7](https://github.com/angular/angular/commit/c6645e7)), closes [#21999](https://github.com/angular/angular/issues/21999)
390-
* **core:** should check Zone existance when scheduleMicroTask ([#20656](https://github.com/angular/angular/issues/20656)) ([aa9ba7f](https://github.com/angular/angular/commit/aa9ba7f))
390+
* **core:** should check Zone existence when scheduleMicroTask ([#20656](https://github.com/angular/angular/issues/20656)) ([aa9ba7f](https://github.com/angular/angular/commit/aa9ba7f))
391391

392392

393393

@@ -1808,7 +1808,7 @@ From 4.0.0 @angular/core uses a [`WeakMap`](https://github.com/angular/angular/c
18081808
* **compiler:** make sourcemaps work in AOT mode ([492153a](https://github.com/angular/angular/commit/492153a))
18091809
* **compiler:** only warn for `[@Injectable](https://github.com/Injectable)` classes with invalid args. ([5c34066](https://github.com/angular/angular/commit/5c34066)), closes [#15003](https://github.com/angular/angular/issues/15003)
18101810
* **compiler:** shouldn't throw when Symbol is used as DI token ([#13701](https://github.com/angular/angular/issues/13701)) ([8b5c6b2](https://github.com/angular/angular/commit/8b5c6b2)), closes [#13314](https://github.com/angular/angular/issues/13314)
1811-
* **compiler:** support interface types in injectable constuctors ([#14894](https://github.com/angular/angular/issues/14894)) ([b00fe20](https://github.com/angular/angular/commit/b00fe20)), closes [#12631](https://github.com/angular/angular/issues/12631)
1811+
* **compiler:** support interface types in injectable constructors ([#14894](https://github.com/angular/angular/issues/14894)) ([b00fe20](https://github.com/angular/angular/commit/b00fe20)), closes [#12631](https://github.com/angular/angular/issues/12631)
18121812
* **compiler:** warning prints "WARNING" instead of "ERROR" ([#15125](https://github.com/angular/angular/issues/15125)) ([3b1956b](https://github.com/angular/angular/commit/3b1956b))
18131813
* **core:** don’t recreate `TemplateRef` when used as a reference. ([#15066](https://github.com/angular/angular/issues/15066)) ([df914ef](https://github.com/angular/angular/commit/df914ef)), closes [#14873](https://github.com/angular/angular/issues/14873)
18141814
* **core:** don’t throw if queries change during change detection. ([06fc42b](https://github.com/angular/angular/commit/06fc42b)), closes [#14925](https://github.com/angular/angular/issues/14925)
@@ -1848,7 +1848,7 @@ From 4.0.0 @angular/core uses a [`WeakMap`](https://github.com/angular/angular/c
18481848

18491849
### BREAKING CHANGES
18501850

1851-
* Perviously, any provider that had an ngOnDestroy lifecycle hook would be created eagerly.
1851+
* Previously, any provider that had an ngOnDestroy lifecycle hook would be created eagerly.
18521852

18531853
Now, only classes that are annotated with @Component, @Directive, @Pipe, @NgModule are eager. Providers only become eager if they are either directly or transitively injected into one of the above.
18541854

@@ -2116,7 +2116,7 @@ Note: the 4.0.0-rc.0 release on npm accidentally omitted one bug fix, so we cut
21162116
* **compiler:** improve error message for unknown elements ([#14373](https://github.com/angular/angular/issues/14373)) ([2c6dab9](https://github.com/angular/angular/commit/2c6dab9))
21172117
* **compiler:** improve error messages in aot compiler ([#14333](https://github.com/angular/angular/issues/14333)) ([a696f4a](https://github.com/angular/angular/commit/a696f4a))
21182118
* **compiler:** improve error msg for unknown properties on ([#14373](https://github.com/angular/angular/issues/14373)) ([e5a144d](https://github.com/angular/angular/commit/e5a144d)), closes [#14070](https://github.com/angular/angular/issues/14070)
2119-
* **core:** Remove ChangeDetectorRef Paramter from KeyValueDifferFactory and IterableDifferFactory ([#14311](https://github.com/angular/angular/issues/14311)) ([45cc444](https://github.com/angular/angular/commit/45cc444))
2119+
* **core:** Remove ChangeDetectorRef Parameter from KeyValueDifferFactory and IterableDifferFactory ([#14311](https://github.com/angular/angular/issues/14311)) ([45cc444](https://github.com/angular/angular/commit/45cc444))
21202120
* **core:** suppress a Closure Compiler warning ([#14484](https://github.com/angular/angular/issues/14484)) ([2f2b65b](https://github.com/angular/angular/commit/2f2b65b))
21212121
* **forms:** getRawValue should correctly work with nested FormGroups/Arrays ([#12964](https://github.com/angular/angular/issues/12964)) ([1ece736](https://github.com/angular/angular/commit/1ece736)), closes [#12963](https://github.com/angular/angular/issues/12963)
21222122
* **http:** REVERT: remove dots from jsonp callback name ([#13219](https://github.com/angular/angular/issues/13219)) ([4676df5](https://github.com/angular/angular/commit/4676df5))
@@ -2301,7 +2301,7 @@ returned value being an array.
23012301
### Bug Fixes
23022302

23032303
* **common:** add PopStateEvent interface ([#13400](https://github.com/angular/angular/issues/13400)) ([71567d1](https://github.com/angular/angular/commit/71567d1)), closes [#13378](https://github.com/angular/angular/issues/13378)
2304-
* **common:** DatePipe does't throw for NaN ([#14117](https://github.com/angular/angular/issues/14117)) ([32cc675](https://github.com/angular/angular/commit/32cc675)), closes [#14103](https://github.com/angular/angular/issues/14103)
2304+
* **common:** DatePipe doesn't throw for NaN ([#14117](https://github.com/angular/angular/issues/14117)) ([32cc675](https://github.com/angular/angular/commit/32cc675)), closes [#14103](https://github.com/angular/angular/issues/14103)
23052305
* **common:** DatePipe parses input string if it's not a valid date in browser ([#13895](https://github.com/angular/angular/issues/13895)) ([e641636](https://github.com/angular/angular/commit/e641636)), closes [#12334](https://github.com/angular/angular/issues/12334) [#13874](https://github.com/angular/angular/issues/13874)
23062306
* **common:** introduce isObservable method ([#14067](https://github.com/angular/angular/issues/14067)) ([109f0d1](https://github.com/angular/angular/commit/109f0d1)), closes [#8848](https://github.com/angular/angular/issues/8848)
23072307
* **compiler:** allow empty translations for attributes ([#14085](https://github.com/angular/angular/issues/14085)) ([f3d5506](https://github.com/angular/angular/commit/f3d5506)), closes [#13897](https://github.com/angular/angular/issues/13897)
@@ -2719,7 +2719,7 @@ We are adding more tests to our test suite to catch these kinds of problems befo
27192719
* **common:** make sure the plural category exists ([#13169](https://github.com/angular/angular/issues/13169)) ([82c81cd](https://github.com/angular/angular/commit/82c81cd)), closes [#12379](https://github.com/angular/angular/issues/12379)
27202720
* **compiler:** include the summaries of reexported modules / directives / pipes ([#13196](https://github.com/angular/angular/issues/13196)) ([75d1617](https://github.com/angular/angular/commit/75d1617))
27212721
* **compiler:** serialize any `StaticSymbol` correctly, not matter in which context ([5614c4f](https://github.com/angular/angular/commit/5614c4f))
2722-
* **compiler:** short-circut expressions with an index ([#13263](https://github.com/angular/angular/issues/13263)) ([f31c947](https://github.com/angular/angular/commit/f31c947)), closes [#13254](https://github.com/angular/angular/issues/13254)
2722+
* **compiler:** short-circuit expressions with an index ([#13263](https://github.com/angular/angular/issues/13263)) ([f31c947](https://github.com/angular/angular/commit/f31c947)), closes [#13254](https://github.com/angular/angular/issues/13254)
27232723
* **core:** display framework version on bootstrapped component ([#13252](https://github.com/angular/angular/issues/13252)) ([16efb13](https://github.com/angular/angular/commit/16efb13))
27242724
* **facade:** cache original format string ([#12764](https://github.com/angular/angular/issues/12764)) ([a132287](https://github.com/angular/angular/commit/a132287))
27252725
* **http:** set the default Accept header ([#12989](https://github.com/angular/angular/issues/12989)) ([986abbe](https://github.com/angular/angular/commit/986abbe)), closes [#6354](https://github.com/angular/angular/issues/6354)

aio/aio-builds-setup/docs/vm-setup--start-docker-container.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ sudo docker run \
7474
## Example
7575
The following command would start a docker container based on the previously created `foobar-builds`
7676
docker image, alias it as 'foobar-builds-1' and map predefined directories on the host VM to be used
77-
by the container for accesing secrets and SSL certificates and keeping the build artifacts and logs.
77+
by the container for accessing secrets and SSL certificates and keeping the build artifacts and logs.
7878

7979
```
8080
sudo docker run \

aio/content/guide/aot-compiler.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ This option should be set to `false` when using factory summaries.
188188

189189
### *fullTemplateTypeCheck*
190190

191-
This option tells the compiler to enable the [binding expression validation](#binding-expresion-validation)
191+
This option tells the compiler to enable the [binding expression validation](#binding-expression-validation)
192192
phase of the template compiler which uses TypeScript to validate binding expressions.
193193

194194
This option is `false` by default.
@@ -379,7 +379,7 @@ export function serverFactory() {
379379
})
380380
```
381381
382-
Beginning in version 5, the compiler automatically performs this rewritting while emitting the `.js` file.
382+
Beginning in version 5, the compiler automatically performs this rewriting while emitting the `.js` file.
383383
384384
{@a function-calls}
385385
### Limited function calls
@@ -647,7 +647,7 @@ The following are metadata errors you may encounter, with explanations and sugge
647647
648648
<h3 class="no-toc">Expression form not supported</h3>
649649
650-
The compiler encountered an expression it didn't understand while evalutating Angular metadata.
650+
The compiler encountered an expression it didn't understand while evaluating Angular metadata.
651651
652652
Language features outside of the compiler's [restricted expression syntax](#expression-syntax)
653653
can produce this error, as seen in the following example:
@@ -1133,12 +1133,12 @@ This error can occur if you use an expression in the `extends` clause of a class
11331133
Chuck: After reviewing your PR comment I'm still at a loss. See [comment there](https://github.com/angular/angular/pull/17712#discussion_r132025495).
11341134
11351135
-->
1136-
{@a binding-expresion-validation}
1136+
{@a binding-expression-validation}
11371137
11381138
## Phase 3: binding expression validation
11391139
11401140
In the validation phase, the Angular template compiler uses the TypeScript compiler to validate the
1141-
binding expressions in templates. Enable this phase explicity by adding the compiler
1141+
binding expressions in templates. Enable this phase explicitly by adding the compiler
11421142
option `"fullTemplateTypeCheck"` in the `"angularCompilerOptions"` of the project's `tsconfig.json` (see
11431143
[Angular Compiler Options](#compiler-options)).
11441144
@@ -1168,7 +1168,7 @@ Chuck: After reviewing your PR comment I'm still at a loss. See [comment there](
11681168
generated by the template compiler that holds contents of the `MyComponent` class template.
11691169
Compiler never writes this file to disk. The line and column numbers are relative to the template string
11701170
in the `@Component` annotation of the class, `MyComponent` in this case. If a component uses
1171-
`templateUrl` instead of `template`, the errors are reported in the HTML file refereneced by the
1171+
`templateUrl` instead of `template`, the errors are reported in the HTML file referenced by the
11721172
`templateUrl` instead of a synthetic file.
11731173
11741174
The error location is the beginning of the text node that contains the interpolation expression with

aio/content/guide/hierarchical-dependency-injection.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ Suppose you configured the root injector (marked as A) with _generic_ providers
220220
You create a car component (A) that displays a car constructed from these three generic services.
221221

222222
Then you create a child component (B) that defines its own, _specialized_ providers for `CarService` and `EngineService`
223-
that have special capabilites suitable for whatever is going on in component (B).
223+
that have special capabilities suitable for whatever is going on in component (B).
224224

225225
Component (B) is the parent of another component (C) that defines its own, even _more specialized_ provider for `CarService`.
226226

aio/content/guide/observables.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Alternatively, the `subscribe()` method can accept callback function definitions
5656

5757
In either case, a `next` handler is required. The `error` and `complete` handlers are optional.
5858

59-
Note that a `next()` function could receive, for instance, message strings, or event objects, numeric values, or stuctures, depending on context. As a general term, we refer to data published by an observable as a *stream*. Any type of value can be represented with an observable, and the values are published as a stream.
59+
Note that a `next()` function could receive, for instance, message strings, or event objects, numeric values, or structures, depending on context. As a general term, we refer to data published by an observable as a *stream*. Any type of value can be represented with an observable, and the values are published as a stream.
6060

6161
## Creating observables
6262

aio/content/guide/quickstart.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ These files go in the root folder next to `src/`.
507507
</td>
508508
<td>
509509

510-
Git configuration to make sure autogenerated files are not commited to source control.
510+
Git configuration to make sure autogenerated files are not committed to source control.
511511

512512
</td>
513513
</tr>

aio/content/guide/service-worker-getting-started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ using an example application.
9797

9898
### Serving with `http-server`
9999

100-
Because `ng serve` does not work with service workers, you must use a seperate HTTP server to test your project locally. You can use any HTTP server. The example below uses the [http-server](https://www.npmjs.com/package/http-server) package from npm. To reduce the possibility of conflicts, test on a dedicated port.
100+
Because `ng serve` does not work with service workers, you must use a separate HTTP server to test your project locally. You can use any HTTP server. The example below uses the [http-server](https://www.npmjs.com/package/http-server) package from npm. To reduce the possibility of conflicts, test on a dedicated port.
101101

102102
To serve with `http-server`, change to the directory containing your web files and start the web server:
103103

aio/content/guide/testing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2365,7 +2365,7 @@ Focus on the `overrideComponent` method.
23652365
<code-example path="testing/src/app/hero/hero-detail.component.spec.ts" region="override-component-method" title="app/hero/hero-detail.component.spec.ts (overrideComponent)" linenums="false"></code-example>
23662366

23672367
It takes two arguments: the component type to override (`HeroDetailComponent`) and an override metadata object.
2368-
The [overide metadata object](#metadata-override-object) is a generic defined as follows:
2368+
The [override metadata object](#metadata-override-object) is a generic defined as follows:
23692369

23702370
<code-example format="." language="javascript">
23712371
type MetadataOverride<T> = {

aio/src/app/custom-elements/code/code.component.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ describe('CodeComponent', () => {
7676
hostComponent.setCode(oneLineCode);
7777
await untilCodeFormatted();
7878

79-
// 'pln' spans are a tell-tale for syntax highlighing
79+
// 'pln' spans are a tell-tale for syntax highlighting
8080
const spans = fixture.nativeElement.querySelectorAll('span.pln');
8181
expect(spans.length).toBeGreaterThan(0, 'formatted spans');
8282
});

0 commit comments

Comments
 (0)