Skip to content

Commit fc9ba39

Browse files
ranma42dylhunn
authored andcommitted
refactor: fix a number of typos throughout the codebase (angular#52249)
Fix some typos such as `boostrap`, `propery` and more, both in documentation and in code (comments, identifiers). PR Close angular#52249
1 parent 31c7bc1 commit fc9ba39

File tree

37 files changed

+65
-62
lines changed

37 files changed

+65
-62
lines changed

aio/content/examples/built-in-directives/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {StoutItemComponent} from './item-switch.component';
2222
imports: [
2323
CommonModule, // <-- import into the component
2424
// #enddocregion import-common-module
25-
FormsModule, // <--- import into the omponent
25+
FormsModule, // <--- import into the component
2626
// #enddocregion import-forms-module
2727
ItemDetailComponent,
2828
ItemSwitchComponents,

aio/content/guide/deprecations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ They should all be configured using other methods, all of which have been
425425
documented.
426426

427427
The following strategies are meant to be configured by registering the
428-
application strategy in DI via the `providers` in the configuration of `boostrapApplication()` for a "Standalone" app or
428+
application strategy in DI via the `providers` in the configuration of `bootstrapApplication()` for a "Standalone" app or
429429
in the root `app.module` of an NgModule app:
430430
* `routeReuseStrategy`
431431

aio/content/guide/doc-github-tasks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ Either way, the procedure to update your branch is the same.
374374

375375
</code-example>
376376

377-
If you have any un-commited changes, [Commit your changes on your local computer](#commit-your-changes-on-your-local-computer) before you continue.
377+
If you have any un-committed changes, [Commit your changes on your local computer](#commit-your-changes-on-your-local-computer) before you continue.
378378

379379
1. Rebase your branch to add the changes in your branch to the current content in the `main` branch.
380380

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ The following diagram represents the relationship between the `root` `ModuleInje
132132
While the name `root` is a special alias, other `EnvironmentInjector` hierarchies don't have aliases.
133133
You have the option to create `EnvironmentInjector` hierarchies whenever a dynamically loaded component is created, such as with the Router, which will create child `EnvironmentInjector` hierarchies.
134134

135-
All requests forward up to the root injector, whether you configured it with the `ApplicationConfig` instance passed to the `boostrapApplication()` method, or registered all providers with `root` in their own services.
135+
All requests forward up to the root injector, whether you configured it with the `ApplicationConfig` instance passed to the `bootstrapApplication()` method, or registered all providers with `root` in their own services.
136136

137137
<div class="callout is-helpful">
138138

aio/content/guide/http-intercept-requests-and-responses.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ This required setting tells Angular that `HTTP_INTERCEPTORS` is a token for a *m
5858
Because interceptors are optional dependencies of the `HttpClient` service, you must provide them in the same injector or a parent of the injector that provides `HttpClient`.
5959
Interceptors provided *after* DI creates the `HttpClient` are ignored.
6060

61-
This app provides `HttpClient` in the app's root injector by adding the `HttpClientModule` to the `providers` array of the `boostrapApplication()` in `main.ts`.
61+
This app provides `HttpClient` in the app's root injector by adding the `HttpClientModule` to the `providers` array of the `bootstrapApplication()` in `main.ts`.
6262
You should provide interceptors there as well.
6363

6464
<code-example path="http/src/main.ts" region="noop-provider"></code-example>
@@ -67,7 +67,7 @@ You should provide interceptors there as well.
6767

6868
There's a good chance that you'll create more interceptors.
6969

70-
You *could* add each provider to the `providers` array of the `boostrapApplication()` as you did for the `NoopInterceptor`.
70+
You *could* add each provider to the `providers` array of the `bootstrapApplication()` as you did for the `NoopInterceptor`.
7171

7272
That's rather verbose and there's a good chance that you'll make a bookkeeping mistake trying to remember to add each one.
7373

aio/content/guide/observables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ You're more likely interested in doing something with the values. Pass in a meth
6969

7070
<code-example header="Subscribe to emitted values" path="observables/src/subscribing.ts" region="next-param"></code-example>
7171

72-
Passing a `next()` function into `subcribe` is a convenient syntax for this most typical case. If you also need to know when the observable emits an error or completes, you'll have to pass in an `Observer` instead.
72+
Passing a `next()` function into `subscribe` is a convenient syntax for this most typical case. If you also need to know when the observable emits an error or completes, you'll have to pass in an `Observer` instead.
7373

7474
## Defining observers
7575

aio/content/tutorial/first-app/first-app-lesson-08.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Now the app has a dataset that you can use to display the entries in the browser
3636
1. Update the `<app-housing-location>` tag in the template code to this:
3737
<code-example header="Add ngFor to HomeComponent template" path="first-app-lesson-08/src/app/home/home.component.ts" region="add-ngFor"></code-example>
3838

39-
Note, in the code `[housingLocation] = "housingLocation"` the `housingLocation` value now refers to the variable used in the `ngFor` directive. Before this change, it refered to the property on the `HomeComponent` class.
39+
Note, in the code `[housingLocation] = "housingLocation"` the `housingLocation` value now refers to the variable used in the `ngFor` directive. Before this change, it referred to the property on the `HomeComponent` class.
4040

4141
1. Save all changes.
4242

aio/content/tutorial/first-app/first-app-lesson-14.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ The data source has been configured, the next step is to update your web app to
153153

154154
1. Add a string property called `url` and set its value to `'http://localhost:3000/locations'`
155155

156-
<code-example anguage="javascript" format="javascript">
156+
<code-example language="javascript" format="javascript">
157157
url = 'http://localhost:3000/locations';
158158
</code-example>
159159

aio/src/app/app.component.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ describe('AppComponent', () => {
922922
});
923923

924924
describe('initial rendering', () => {
925-
const originialReducedMotion = AppComponent.reducedMotion;
925+
const originalReducedMotion = AppComponent.reducedMotion;
926926

927927
beforeEach(() => {
928928
jasmine.clock().install();
@@ -931,7 +931,7 @@ describe('AppComponent', () => {
931931

932932
afterEach(() => {
933933
jasmine.clock().uninstall();
934-
AppComponent.reducedMotion = originialReducedMotion;
934+
AppComponent.reducedMotion = originalReducedMotion;
935935
});
936936

937937
it('should initially disable Angular animations until a document is rendered', () => {
@@ -1056,7 +1056,7 @@ describe('AppComponent', () => {
10561056
});
10571057

10581058
describe('disableAnimations', () => {
1059-
const originialReducedMotion = AppComponent.reducedMotion;
1059+
const originalReducedMotion = AppComponent.reducedMotion;
10601060

10611061
beforeEach(() => {
10621062
jasmine.clock().install();
@@ -1065,7 +1065,7 @@ describe('AppComponent', () => {
10651065

10661066
afterEach(() => {
10671067
jasmine.clock().uninstall();
1068-
AppComponent.reducedMotion = originialReducedMotion;
1068+
AppComponent.reducedMotion = originalReducedMotion;
10691069
});
10701070

10711071
it('should initially be true', () => {

aio/src/app/layout/notification/notification.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<ng-content></ng-content>
33
</span>
44

5-
<button mat-icon-button class="close-button" [attr.aria-label]="'Close' + bannerNotficationDescription" (click)="dismiss()">
5+
<button mat-icon-button class="close-button" [attr.aria-label]="'Close' + bannerNotificationDescription" (click)="dismiss()">
66
<mat-icon svgIcon="close"></mat-icon>
77
</button>

0 commit comments

Comments
 (0)