Skip to content

Commit c14c701

Browse files
jayvdbthePunderWoman
authored andcommitted
docs: fix spelling (angular#46713)
PR Close angular#46713
1 parent cee207e commit c14c701

File tree

67 files changed

+108
-101
lines changed

Some content is hidden

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

67 files changed

+108
-101
lines changed

goldens/public-api/router/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ export interface RouterOutletContract {
782782
activatedRoute: ActivatedRoute | null;
783783
activatedRouteData: Data;
784784
activateEvents?: EventEmitter<unknown>;
785-
activateWith(activatedRoute: ActivatedRoute, environmnetInjector: EnvironmentInjector | null): void;
785+
activateWith(activatedRoute: ActivatedRoute, environmentInjector: EnvironmentInjector | null): void;
786786
// @deprecated
787787
activateWith(activatedRoute: ActivatedRoute, resolver: ComponentFactoryResolver | null): void;
788788
attach(ref: ComponentRef<unknown>, activatedRoute: ActivatedRoute): void;

packages/animations/browser/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
// This file is not used to build this module. It is only used during editing
10-
// by the TypeScript language service and during build for verifcation. `ngc`
10+
// by the TypeScript language service and during build for verification. `ngc`
1111
// replaces this file with production index.ts when it rewrites private symbol
1212
// names.
1313

packages/common/http/src/headers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export class HttpHeaders {
157157
* in the returned object.
158158
*
159159
* @param name The header name.
160-
* @param value The value or values to set or overide for the given header.
160+
* @param value The value or values to set or override for the given header.
161161
*
162162
* @returns A clone of the HTTP headers object with the newly set header value.
163163
*/

packages/common/http/src/xhr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export class HttpXhrBackend implements HttpBackend {
221221
// The sentHeaders flag tracks whether the HttpResponseHeaders event
222222
// has been sent on the stream. This is necessary to track if progress
223223
// is enabled since the event will be sent on only the first download
224-
// progerss event.
224+
// progress event.
225225
let sentHeaders = false;
226226

227227
// The download progress event handler, which is only registered if

packages/common/src/directives/ng_for_of.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class NgForOfContext<T, U extends NgIterable<T> = NgIterable<T>> {
7474
* on an element](guide/structural-directives#one-per-element).
7575
* If you want to iterate conditionally, for example,
7676
* put the `*ngIf` on a container element that wraps the `*ngFor` element.
77-
* For futher discussion, see
77+
* For further discussion, see
7878
* [Structural Directives](guide/structural-directives#one-per-element).
7979
*
8080
* @usageNotes

packages/common/src/i18n/format_number.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export function formatCurrency(
163163
// if we have 2 time the currency character, the second one is ignored
164164
.replace(CURRENCY_CHAR, '')
165165
// If there is a spacing between currency character and the value and
166-
// the currency character is supressed by passing an empty string, the
166+
// the currency character is suppressed by passing an empty string, the
167167
// spacing character would remain as part of the string. Then we
168168
// should remove it.
169169
.trim();

packages/common/src/i18n/locale_data_api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,11 @@ export function getLocaleWeekEndRange(locale: string): [WeekDay, WeekDay] {
333333
}
334334

335335
/**
336-
* Retrieves a localized date-value formating string.
336+
* Retrieves a localized date-value formatting string.
337337
*
338338
* @param locale A locale code for the locale format rules to use.
339339
* @param width The format type.
340-
* @returns The localized formating string.
340+
* @returns The localized formatting string.
341341
* @see `FormatWidth`
342342
* @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)
343343
*

packages/common/upgrade/src/location_shim.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const DEFAULT_PORTS: {[key: string]: number} = {
3131
* @publicApi
3232
*/
3333
export class $locationShim {
34-
private initalizing = true;
34+
private initializing = true;
3535
private updateBrowser = false;
3636
private $$absUrl: string = '';
3737
private $$url: string = '';
@@ -151,7 +151,7 @@ export class $locationShim {
151151
this.setBrowserUrlWithFallback(oldUrl, false, oldState);
152152
this.$$notifyChangeListeners(this.url(), this.$$state, oldUrl, oldState);
153153
} else {
154-
this.initalizing = false;
154+
this.initializing = false;
155155
$rootScope.$broadcast('$locationChangeSuccess', newUrl, oldUrl, newState, oldState);
156156
this.resetBrowserUpdate();
157157
}
@@ -162,7 +162,7 @@ export class $locationShim {
162162

163163
// update browser
164164
$rootScope.$watch(() => {
165-
if (this.initalizing || this.updateBrowser) {
165+
if (this.initializing || this.updateBrowser) {
166166
this.updateBrowser = false;
167167

168168
const oldUrl = this.browserUrl();
@@ -177,8 +177,8 @@ export class $locationShim {
177177
// next tick (thus inside $evalAsync()) in order for listeners to be registered
178178
// before the event fires. Mimicing behavior from $locationWatch:
179179
// https://github.com/angular/angular.js/blob/master/src/ng/location.js#L983
180-
if (this.initalizing || urlOrStateChanged) {
181-
this.initalizing = false;
180+
if (this.initializing || urlOrStateChanged) {
181+
this.initializing = false;
182182

183183
$rootScope.$evalAsync(() => {
184184
// Get the new URL again since it could have changed due to async update
@@ -196,8 +196,8 @@ export class $locationShim {
196196
this.$$parse(oldUrl);
197197
this.$$state = oldState;
198198
} else {
199-
// This block doesn't run when initalizing because it's going to perform the update to
200-
// the URL which shouldn't be needed when initalizing.
199+
// This block doesn't run when initializing because it's going to perform the update
200+
// to the URL which shouldn't be needed when initializing.
201201
if (urlOrStateChanged) {
202202
this.setBrowserUrlWithFallback(
203203
newUrl, currentReplace, oldState === this.$$state ? null : this.$$state);
@@ -706,7 +706,7 @@ export class $locationShim {
706706

707707
/**
708708
* The factory function used to create an instance of the `$locationShim` in Angular,
709-
* and provides an API-compatiable `$locationProvider` for AngularJS.
709+
* and provides an API-compatible `$locationProvider` for AngularJS.
710710
*
711711
* @publicApi
712712
*/

packages/compiler-cli/linker/src/linker_import_generator.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88
import {ImportGenerator, NamedImport} from '../../src/ngtsc/translator';
9+
910
import {FatalLinkerError} from './fatal_linker_error';
1011

1112
/**
1213
* A class that is used to generate imports when translating from Angular Output AST to an AST to
1314
* render, such as Babel.
1415
*
1516
* Note that, in the linker, there can only be imports from `@angular/core` and that these imports
16-
* must be achieved by property access on an `ng` namespace identifer, which is passed in via the
17+
* must be achieved by property access on an `ng` namespace identifier, which is passed in via the
1718
* constructor.
1819
*/
1920
export class LinkerImportGenerator<TExpression> implements ImportGenerator<TExpression> {

packages/compiler-cli/ngcc/src/host/commonjs_umd_utils.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*/
88

99
import ts from 'typescript';
10+
1011
import {Declaration} from '../../../src/ngtsc/reflection';
1112
import {isAssignment} from '../../../src/ngtsc/util/src/typescript';
1213

@@ -72,7 +73,7 @@ export function findNamespaceOfIdentifier(id: ts.Identifier): ts.Identifier|null
7273

7374
/**
7475
* Return the `RequireCall` that is used to initialize the specified `ts.Identifier`, if the
75-
* specified indentifier was indeed initialized with a require call in a declaration of the form:
76+
* specified identifier was indeed initialized with a require call in a declaration of the form:
7677
* `var <id> = require('...')`
7778
*/
7879
export function findRequireCallReference(id: ts.Identifier, checker: ts.TypeChecker): RequireCall|
@@ -266,7 +267,7 @@ export function isExportsStatement(stmt: ts.Node): stmt is ExportsStatement {
266267
}
267268

268269
/**
269-
* Find the far right hand side of a sequence of aliased assignements of the form
270+
* Find the far right hand side of a sequence of aliased assignments of the form
270271
*
271272
* ```
272273
* exports.MyClass = alias1 = alias2 = <<declaration>>

0 commit comments

Comments
 (0)