From bfea95d2786866aae4b3d12457f17da4f5f6db9b Mon Sep 17 00:00:00 2001 From: Veres Lajos Date: Sat, 22 Apr 2017 21:59:03 +0100 Subject: [PATCH] fix: typofixes by https://github.com/vlajos/misspell_fixer --- .../scripts-js/lib/verify-setup/nginx.e2e.ts | 2 +- aio/aio-builds-setup/docs/overview--security-model.md | 2 +- .../examples/architecture/src/app/backend.service.ts | 2 +- .../cb-component-communication/src/app/app.module.ts | 2 +- .../hierarchical-dependency-injection/plnkr.json | 2 +- aio/content/examples/pipes/e2e-spec.ts | 2 +- aio/content/examples/testing/src/app/bag/bag.ts | 2 +- .../testing/src/app/hero/hero-detail.component.spec.ts | 2 +- aio/content/guide/cb-dependency-injection.md | 2 +- aio/content/guide/cli-quickstart.md | 2 +- aio/content/guide/displaying-data.md | 2 +- aio/content/guide/form-validation.md | 2 +- aio/content/guide/i18n.md | 2 +- aio/content/guide/reactive-forms.md | 4 ++-- aio/content/guide/setup-systemjs-anatomy.md | 2 +- aio/content/guide/style-guide.md | 4 ++-- aio/content/guide/template-syntax.md | 2 +- aio/content/guide/ts-to-js.md | 4 ++-- aio/src/assets/images/home/speed-performance.svg | 2 +- aio/src/styles/2-modules/_announcement-bar.scss | 2 +- aio/src/styles/2-modules/_hero.scss | 2 +- aio/src/styles/_mixins.scss | 2 +- .../processors/addNotYetDocumentedProperty.spec.js | 2 +- .../angular.io-package/rendering/indentForMarkdown.js | 2 +- docs/TOOLS.md | 2 +- integration/language_service_plugin/package.json | 2 +- .../browser/test/engine/dom_animation_engine_spec.ts | 4 ++-- .../src/webdriver/chrome_driver_extension.ts | 2 +- packages/common/src/directives/ng_if.ts | 2 +- packages/compiler/src/aot/summary_serializer.ts | 2 +- packages/compiler/test/ml_parser/html_parser_spec.ts | 2 +- packages/core/src/view/types.ts | 2 +- .../core/test/linker/regression_integration_spec.ts | 8 ++++---- packages/core/test/util/decorators_spec.ts | 2 +- packages/core/test/view/provider_spec.ts | 2 +- packages/language-service/src/diagnostics.ts | 2 +- packages/language-service/src/expressions.ts | 6 +++--- packages/language-service/src/types.ts | 10 +++++----- .../language-service/test/language_service_spec.ts | 2 +- packages/language-service/test/ts_plugin_spec.ts | 4 ++-- .../test/testing_public_browser_spec.ts | 4 ++-- .../platform-browser/src/security/html_sanitizer.ts | 2 +- .../src/web_workers/shared/message_bus.ts | 2 +- .../test/web_workers/shared/message_bus_spec.ts | 2 +- packages/router/src/url_tree.ts | 2 +- packages/router/test/integration.spec.ts | 2 +- tools/@angular/tsc-wrapped/src/evaluator.ts | 2 +- tools/@angular/tsc-wrapped/src/options.ts | 2 +- tools/@angular/tsc-wrapped/test/collector.spec.ts | 2 +- 49 files changed, 64 insertions(+), 64 deletions(-) diff --git a/aio/aio-builds-setup/dockerbuild/scripts-js/lib/verify-setup/nginx.e2e.ts b/aio/aio-builds-setup/dockerbuild/scripts-js/lib/verify-setup/nginx.e2e.ts index 99959c2e449c68..9375a83da11a50 100644 --- a/aio/aio-builds-setup/dockerbuild/scripts-js/lib/verify-setup/nginx.e2e.ts +++ b/aio/aio-builds-setup/dockerbuild/scripts-js/lib/verify-setup/nginx.e2e.ts @@ -246,7 +246,7 @@ describe(`nginx`, () => { describe(`${host}/*`, () => { - it('should respond with 404 for unkown URLs (even if the resource exists)', done => { + it('should respond with 404 for unknown URLs (even if the resource exists)', done => { ['index.html', 'foo.js', 'foo/index.html'].forEach(relFilePath => { const absFilePath = path.join(h.buildsDir, relFilePath); h.writeFile(absFilePath, {content: `File: /${relFilePath}`}); diff --git a/aio/aio-builds-setup/docs/overview--security-model.md b/aio/aio-builds-setup/docs/overview--security-model.md index 03e6645e8720e0..d8e8b1db691c75 100644 --- a/aio/aio-builds-setup/docs/overview--security-model.md +++ b/aio/aio-builds-setup/docs/overview--security-model.md @@ -81,7 +81,7 @@ This section describes how each of the aforementioned sub-tasks is accomplished: 4. **Deploy the artifacts to the corresponding PR's directory.** - With the preceeding steps, we have verified that the uploaded artifacts have been uploaded by + With the preceding steps, we have verified that the uploaded artifacts have been uploaded by Travis and correspond to a PR whose author is a member of a trusted team. Essentially, as long as sub-tasks 1, 2 and 3 can be securely accomplished, it is possible to "project" the trust we have in a team's members through the PR and Travis to the build artifacts. diff --git a/aio/content/examples/architecture/src/app/backend.service.ts b/aio/content/examples/architecture/src/app/backend.service.ts index e47cfc8acef47c..e3e21a6ff40ea3 100644 --- a/aio/content/examples/architecture/src/app/backend.service.ts +++ b/aio/content/examples/architecture/src/app/backend.service.ts @@ -6,7 +6,7 @@ import { Hero } from './hero'; const HEROES = [ new Hero('Windstorm', 'Weather mastery'), new Hero('Mr. Nice', 'Killing them with kindness'), - new Hero('Magneta', 'Manipulates metalic objects') + new Hero('Magneta', 'Manipulates metallic objects') ]; @Injectable() diff --git a/aio/content/examples/cb-component-communication/src/app/app.module.ts b/aio/content/examples/cb-component-communication/src/app/app.module.ts index a008fc54864596..7a27465ff82497 100644 --- a/aio/content/examples/cb-component-communication/src/app/app.module.ts +++ b/aio/content/examples/cb-component-communication/src/app/app.module.ts @@ -39,7 +39,7 @@ if (!/e2e/.test(location.search)) { directives.push(CountdownLocalVarParentComponent); directives.push(CountdownViewChildParentComponent); } else { - // In e2e test use CUSTOM_ELEMENTS_SCHEMA to supress unknown element errors + // In e2e test use CUSTOM_ELEMENTS_SCHEMA to suppress unknown element errors schemas.push(CUSTOM_ELEMENTS_SCHEMA); } diff --git a/aio/content/examples/hierarchical-dependency-injection/plnkr.json b/aio/content/examples/hierarchical-dependency-injection/plnkr.json index ca92b93b0664ba..2bddf49a33f7c0 100644 --- a/aio/content/examples/hierarchical-dependency-injection/plnkr.json +++ b/aio/content/examples/hierarchical-dependency-injection/plnkr.json @@ -1,5 +1,5 @@ { - "description": "Hierachical Dependency Injection", + "description": "Hierarchical Dependency Injection", "basePath": "src/", "files":[ "!**/*.d.ts", diff --git a/aio/content/examples/pipes/e2e-spec.ts b/aio/content/examples/pipes/e2e-spec.ts index 00277e36579828..0aa5f09a5785a2 100644 --- a/aio/content/examples/pipes/e2e-spec.ts +++ b/aio/content/examples/pipes/e2e-spec.ts @@ -85,7 +85,7 @@ describe('Pipes', function () { return resetEle.click(); }) .then(function() { - expect(flyingHeroesEle.count()).toEqual(2, 'reset should restore orginal flying heroes'); + expect(flyingHeroesEle.count()).toEqual(2, 'reset should restore original flying heroes'); }); }); diff --git a/aio/content/examples/testing/src/app/bag/bag.ts b/aio/content/examples/testing/src/app/bag/bag.ts index cbf1c21136cff8..53ead25d447cfe 100644 --- a/aio/content/examples/testing/src/app/bag/bag.ts +++ b/aio/content/examples/testing/src/app/bag/bag.ts @@ -273,7 +273,7 @@ export class InnerCompWithExternalTemplateComponent { } @Component({ selector: 'bad-template-comp', - templateUrl: './non-existant.html' + templateUrl: './non-existent.html' }) export class BadTemplateUrlComponent { } diff --git a/aio/content/examples/testing/src/app/hero/hero-detail.component.spec.ts b/aio/content/examples/testing/src/app/hero/hero-detail.component.spec.ts index 80b6450ac5f4fa..6bae996ed77023 100644 --- a/aio/content/examples/testing/src/app/hero/hero-detail.component.spec.ts +++ b/aio/content/examples/testing/src/app/hero/hero-detail.component.spec.ts @@ -227,7 +227,7 @@ function heroModuleSetup() { // #enddocregion route-no-id // #docregion route-bad-id - describe('when navigate to non-existant hero id', () => { + describe('when navigate to non-existent hero id', () => { beforeEach( async(() => { activatedRoute.testParams = { id: 99999 }; createComponent(); diff --git a/aio/content/guide/cb-dependency-injection.md b/aio/content/guide/cb-dependency-injection.md index 3c4bf12742366d..d87b86e0816e0b 100644 --- a/aio/content/guide/cb-dependency-injection.md +++ b/aio/content/guide/cb-dependency-injection.md @@ -247,7 +247,7 @@ You can limit the scope of an injected service to a *branch* of the application by providing that service *at the sub-root component for that branch*. This example shows how similar providing a service to a sub-root component is to providing a service in the root `AppComponent`. The syntax is the same. -Here, the `HeroService` is availble to the `HeroesBaseComponent` because it is in the `providers` array: +Here, the `HeroService` is available to the `HeroesBaseComponent` because it is in the `providers` array: diff --git a/aio/content/guide/cli-quickstart.md b/aio/content/guide/cli-quickstart.md index b2397581771dfd..eb55db5218274f 100644 --- a/aio/content/guide/cli-quickstart.md +++ b/aio/content/guide/cli-quickstart.md @@ -705,7 +705,7 @@ These files go in the root folder next to `src/`. - Git configuration to make sure autogenerated files are not commited to source control. + Git configuration to make sure autogenerated files are not committed to source control. diff --git a/aio/content/guide/displaying-data.md b/aio/content/guide/displaying-data.md index e40e7010ea7f9d..8fc52d56da76bd 100644 --- a/aio/content/guide/displaying-data.md +++ b/aio/content/guide/displaying-data.md @@ -337,7 +337,7 @@ Read more about `ngIf` and `*` in the [ngIf section](guide/template-syntax#ngIf) The template expression inside the double quotes, -`*ngIf="heros.length > 3"`, looks and behaves much like TypeScript. +`*ngIf="heroes.length > 3"`, looks and behaves much like TypeScript. When the component's list of heroes has more than three items, Angular adds the paragraph to the DOM and the message appears. If there are three or fewer items, Angular omits the paragraph, so no message appears. For more information, diff --git a/aio/content/guide/form-validation.md b/aio/content/guide/form-validation.md index cfcb69661dc208..99ca24c558c0f1 100644 --- a/aio/content/guide/form-validation.md +++ b/aio/content/guide/form-validation.md @@ -212,7 +212,7 @@ on custom validation directives. * The `#name` template variable is gone because the app no longer refers to the Angular control for this element. -* Binding to the new `formErrors.name` property is sufficent to display all name validation error messages. +* Binding to the new `formErrors.name` property is sufficient to display all name validation error messages. {@a component-class} diff --git a/aio/content/guide/i18n.md b/aio/content/guide/i18n.md index fdca5b7fc8768c..80d151abf528f9 100644 --- a/aio/content/guide/i18n.md +++ b/aio/content/guide/i18n.md @@ -66,7 +66,7 @@ into multiple languages. Practitioners of _internationalization_ refer to a translatable text as a "_message_". -This page uses the words "_text_" and "_message_" interchangably and in the combination, "_text message_". +This page uses the words "_text_" and "_message_" interchangeably and in the combination, "_text message_". diff --git a/aio/content/guide/reactive-forms.md b/aio/content/guide/reactive-forms.md index 3da2ba3e1e7da8..69520e32b11e21 100644 --- a/aio/content/guide/reactive-forms.md +++ b/aio/content/guide/reactive-forms.md @@ -642,7 +642,7 @@ If you do not bind the value, the select shows the first option from the data mo The component _class_ defines control properties without regard for their representation in the template. You define the `state`, `power`, and `sidekick` controls the same way you defined the `name` control. You tie these controls to the template HTML elements in the same way, -specifiying the `FormControl` name with the `formControlName` directive. +specifying the `FormControl` name with the `formControlName` directive. See the API reference for more information about [radio buttons](api/forms/index/RadioControlValueAccessor-directive "API: RadioControlValueAccessor"), @@ -1248,7 +1248,7 @@ Place a button on the form so the user can add a new _secret lair_ and wire it t Be sure to **add the `type="button"` attribute**. In fact, you should always specify a button's `type`. -Without an explict type, the button type defaults to "submit". +Without an explicit type, the button type defaults to "submit". When you later add a _form submit_ action, every "submit" button triggers the submit action which might do something like save the current changes. You do not want to save changes when the user clicks the _Add a Secret Lair_ button. diff --git a/aio/content/guide/setup-systemjs-anatomy.md b/aio/content/guide/setup-systemjs-anatomy.md index 0718fba6807ffc..96f5ddee3c2fa0 100644 --- a/aio/content/guide/setup-systemjs-anatomy.md +++ b/aio/content/guide/setup-systemjs-anatomy.md @@ -207,7 +207,7 @@ If you do, this page can help you understand their purpose. A list of files that you can delete if you want to purge your setup of the - original QuickStart Seed testing and git maintainence artifacts. + original QuickStart Seed testing and git maintenance artifacts. See instructions in the optional [_Deleting non-essential files_](guide/setup#non-essential "Setup: Deleting non-essential files") section. *Do this only in the beginning to avoid accidentally deleting your own tests and git setup!* diff --git a/aio/content/guide/style-guide.md b/aio/content/guide/style-guide.md index 3602c8c114c9bf..0779b04bdf56b3 100644 --- a/aio/content/guide/style-guide.md +++ b/aio/content/guide/style-guide.md @@ -3114,7 +3114,7 @@ that may need features from another common module; for example, -**Why?** A lazy loaded feature module that imports that shared module will make its own copy of the service and likely have undesireable results. +**Why?** A lazy loaded feature module that imports that shared module will make its own copy of the service and likely have undesirable results. @@ -3363,7 +3363,7 @@ Yet they're too big and messy to leave loose in the root folder. -**Why?** A lazily loaded feature module that directly imports the `CoreModule` will make its own copy of services and likely have undesireable results. +**Why?** A lazily loaded feature module that directly imports the `CoreModule` will make its own copy of services and likely have undesirable results. diff --git a/aio/content/guide/template-syntax.md b/aio/content/guide/template-syntax.md index f445b3776a561d..eb6a5621350619 100644 --- a/aio/content/guide/template-syntax.md +++ b/aio/content/guide/template-syntax.md @@ -1889,7 +1889,7 @@ _This_ section is an introduction to the common structural directives: ### NgIf You can add or remove an element from the DOM by applying an `NgIf` directive to -that element (called the _host elment_). +that element (called the _host element_). Bind the directive to a condition expression like `isActive` in this example. diff --git a/aio/content/guide/ts-to-js.md b/aio/content/guide/ts-to-js.md index e27b07e77cec1e..4a8baf21376f88 100644 --- a/aio/content/guide/ts-to-js.md +++ b/aio/content/guide/ts-to-js.md @@ -617,8 +617,8 @@ In _TypeScript_ and _ES6-with-decorators_, you precede the class constructor par by calling the `@Inject()` decorator with the injection token. In the following example, the token is the string `'heroName'`. -The other JavaScript dialects add a `parameters` array to the class contructor function. -Each item constains a new instance of `Inject`: +The other JavaScript dialects add a `parameters` array to the class constructor function. +Each item contains a new instance of `Inject`: * _plain ES6_ — each item is a new instance of `Inject(token)` in a sub-array. diff --git a/aio/src/assets/images/home/speed-performance.svg b/aio/src/assets/images/home/speed-performance.svg index 0331dbdec24938..c6294874b6dd15 100644 --- a/aio/src/assets/images/home/speed-performance.svg +++ b/aio/src/assets/images/home/speed-performance.svg @@ -259,7 +259,7 @@ - + diff --git a/aio/src/styles/2-modules/_announcement-bar.scss b/aio/src/styles/2-modules/_announcement-bar.scss index f692a23020ecf6..fa565d0becfdff 100644 --- a/aio/src/styles/2-modules/_announcement-bar.scss +++ b/aio/src/styles/2-modules/_announcement-bar.scss @@ -1,5 +1,5 @@ /* Announcment Bar Module */ -/* A module displaying time senstive announcemnts */ +/* A module displaying time sensitive announcemnts */ /* VARIABLES */ diff --git a/aio/src/styles/2-modules/_hero.scss b/aio/src/styles/2-modules/_hero.scss index 4a2abd0acc9e94..cb18964f6fac88 100644 --- a/aio/src/styles/2-modules/_hero.scss +++ b/aio/src/styles/2-modules/_hero.scss @@ -80,7 +80,7 @@ // height: auto; // } - // LARGE SHEILD LOGO + // LARGE SHIELD LOGO .hero-logo { filter: drop-shadow(0 2px 2px rgba($black, 0.24)); margin-bottom: 8px; diff --git a/aio/src/styles/_mixins.scss b/aio/src/styles/_mixins.scss index 761d6d3c671845..1cecb5ab50f3d6 100644 --- a/aio/src/styles/_mixins.scss +++ b/aio/src/styles/_mixins.scss @@ -2,7 +2,7 @@ Media queries - To use these, put this snippet in the approriate selector: + To use these, put this snippet in the appropriate selector: @include bp(tiny) { background-color: purple; diff --git a/aio/tools/transforms/angular.io-package/processors/addNotYetDocumentedProperty.spec.js b/aio/tools/transforms/angular.io-package/processors/addNotYetDocumentedProperty.spec.js index ab71e43227bfd7..c1a37d1077c347 100644 --- a/aio/tools/transforms/angular.io-package/processors/addNotYetDocumentedProperty.spec.js +++ b/aio/tools/transforms/angular.io-package/processors/addNotYetDocumentedProperty.spec.js @@ -101,7 +101,7 @@ describe('addNotYetDocumentedProperty', function() { }); - it('should not mark documents explicity tagged as `@noDescription`', function() { + it('should not mark documents explicitly tagged as `@noDescription`', function() { var a, a1, a2, b, b1, b2, c, c1, c2; var docs = [ a = { diff --git a/aio/tools/transforms/angular.io-package/rendering/indentForMarkdown.js b/aio/tools/transforms/angular.io-package/rendering/indentForMarkdown.js index 86210565d7739b..3330114f04819f 100644 --- a/aio/tools/transforms/angular.io-package/rendering/indentForMarkdown.js +++ b/aio/tools/transforms/angular.io-package/rendering/indentForMarkdown.js @@ -21,7 +21,7 @@ module.exports = function() { if (newLines.length > 0) { newLines.pop(); } else { - // wierd case - first expression in str is an @example + // weird case - first expression in str is an @example // in this case the :marked appear above the str passed in, // so we need to put 'something' into the markdown tag. newLines.push(sp + '.'); // '.' is a dummy char diff --git a/docs/TOOLS.md b/docs/TOOLS.md index 8bfcb8f35c6a9f..2717aa813b6336 100644 --- a/docs/TOOLS.md +++ b/docs/TOOLS.md @@ -45,7 +45,7 @@ computing the changes being slow, or due to the act of applying those changes to the UI. For your application to be performant it is important that the process of computing changes is very fast. For best results it should be under 3 milliseconds in order to leave room for the application logic, the UI updates -and browser's rendering pipeline to fit withing the 16 millisecond frame +and browser's rendering pipeline to fit within the 16 millisecond frame (assuming the 60 FPS target frame rate). Change detection profiler repeatedly performs change detection without invoking diff --git a/integration/language_service_plugin/package.json b/integration/language_service_plugin/package.json index 9bacc6cf25723c..065fce78833851 100644 --- a/integration/language_service_plugin/package.json +++ b/integration/language_service_plugin/package.json @@ -2,7 +2,7 @@ "name": "language_service_plugin", "version": "0.0.0", "license": "MIT", - "decription": "Angular Langauge Service plugin integration test", + "decription": "Angular Language Service plugin integration test", "dependencies": { "@angular/animations": "file:../../dist/packages-dist/animations", "@angular/common": "file:../../dist/packages-dist/common", diff --git a/packages/animations/browser/test/engine/dom_animation_engine_spec.ts b/packages/animations/browser/test/engine/dom_animation_engine_spec.ts index 9647d2cd305da0..c2b134825efd85 100644 --- a/packages/animations/browser/test/engine/dom_animation_engine_spec.ts +++ b/packages/animations/browser/test/engine/dom_animation_engine_spec.ts @@ -195,7 +195,7 @@ export function main() { /Unable to listen on the animation trigger "myTrigger" because the provided event is undefined!/); }); - it('should retain event listeners and call them for sucessive animation state changes', + it('should retain event listeners and call them for successive animation state changes', () => { const engine = makeEngine(); const trig = trigger( @@ -271,7 +271,7 @@ export function main() { [transition( '* => *', [style({height: '0px'}), animate(1234, style({height: '100px'}))])])); - // we do this so that the next transition has a starting value that isnt null + // we do this so that the next transition has a starting value that isn't null engine.setProperty(element, 'myTrigger', '123'); engine.flush(); diff --git a/packages/benchpress/src/webdriver/chrome_driver_extension.ts b/packages/benchpress/src/webdriver/chrome_driver_extension.ts index 3052c3db97462e..0cf41cb38d2ada 100644 --- a/packages/benchpress/src/webdriver/chrome_driver_extension.ts +++ b/packages/benchpress/src/webdriver/chrome_driver_extension.ts @@ -110,7 +110,7 @@ export class ChromeDriverExtension extends WebDriverExtension { categories, name, ['benchmark'], 'BenchmarkInstrumentation::ImplThreadRenderingStats')) { // TODO(goderbauer): Instead of BenchmarkInstrumentation::ImplThreadRenderingStats the - // following events should be used (if available) for more accurate measurments: + // following events should be used (if available) for more accurate measurements: // 1st choice: vsync_before - ground truth on Android // 2nd choice: BenchmarkInstrumentation::DisplayRenderingStats - available on systems with // new surfaces framework (not broadly enabled yet) diff --git a/packages/common/src/directives/ng_if.ts b/packages/common/src/directives/ng_if.ts index 5e71d31d1f25d1..5793fbd91bc616 100644 --- a/packages/common/src/directives/ng_if.ts +++ b/packages/common/src/directives/ng_if.ts @@ -45,7 +45,7 @@ import {Directive, EmbeddedViewRef, Input, TemplateRef, ViewContainerRef} from ' * A common pattern is that we need to show a set of properties from the same object. If the * object is undefined, then we have to use the safe-traversal-operator `?.` to guard against * dereferencing a `null` value. This is especially the case when waiting on async data such as - * when using the `async` pipe as shown in folowing example: + * when using the `async` pipe as shown in following example: * * ``` * Hello {{ (userStream|async)?.last }}, {{ (userStream|async)?.first }}! diff --git a/packages/compiler/src/aot/summary_serializer.ts b/packages/compiler/src/aot/summary_serializer.ts index 75e0d0b3650bcc..acabcffc96936e 100644 --- a/packages/compiler/src/aot/summary_serializer.ts +++ b/packages/compiler/src/aot/summary_serializer.ts @@ -142,7 +142,7 @@ class Serializer extends ValueTransformer { __symbol: index, name: symbol.name, // We convert the source filenames tinto output filenames, - // as the generated summary file will be used when teh current + // as the generated summary file will be used when the current // compilation unit is used as a library filePath: this.summaryResolver.getLibraryFileName(symbol.filePath), importAs: importAs diff --git a/packages/compiler/test/ml_parser/html_parser_spec.ts b/packages/compiler/test/ml_parser/html_parser_spec.ts index 3d99cc9afa4595..91b641fae66147 100644 --- a/packages/compiler/test/ml_parser/html_parser_spec.ts +++ b/packages/compiler/test/ml_parser/html_parser_spec.ts @@ -417,7 +417,7 @@ export function main() { expect((ast.rootNodes[0] as html.Element).attrs[0].valueSpan).toBeUndefined(); }); - it('should report a value span for an attibute with a value', () => { + it('should report a value span for an attribute with a value', () => { const ast = parser.parse('
', 'TestComp'); const attr = (ast.rootNodes[0] as html.Element).attrs[0]; expect(attr.valueSpan !.start.offset).toEqual(9); diff --git a/packages/core/src/view/types.ts b/packages/core/src/view/types.ts index 325f75faad9f0b..66c3d50bcb4a50 100644 --- a/packages/core/src/view/types.ts +++ b/packages/core/src/view/types.ts @@ -75,7 +75,7 @@ export interface ViewHandleEventFn { } /** - * Bitmask for ViewDefintion.flags. + * Bitmask for ViewDefinition.flags. */ export const enum ViewFlags { None = 0, diff --git a/packages/core/test/linker/regression_integration_spec.ts b/packages/core/test/linker/regression_integration_spec.ts index dd11db580ac3f9..9091138722fbff 100644 --- a/packages/core/test/linker/regression_integration_spec.ts +++ b/packages/core/test/linker/regression_integration_spec.ts @@ -238,14 +238,14 @@ function declareTests({useJit}: {useJit: boolean}) { return MyComponent; } const HeroComponent = ComponentFactory('my-hero', 'my hero'); - const VillianComponent = ComponentFactory('a-villian', 'a villian'); + const VillainComponent = ComponentFactory('a-villain', 'a villain'); const MainComponent = ComponentFactory( - 'my-app', 'I was saved by from .'); + 'my-app', 'I was saved by from .'); TestBed.configureTestingModule( - {declarations: [HeroComponent, VillianComponent, MainComponent]}); + {declarations: [HeroComponent, VillainComponent, MainComponent]}); const fixture = TestBed.createComponent(MainComponent); - expect(fixture.nativeElement).toHaveText('I was saved by my hero from a villian.'); + expect(fixture.nativeElement).toHaveText('I was saved by my hero from a villain.'); }); it('should allow to use the renderer outside of views', () => { diff --git a/packages/core/test/util/decorators_spec.ts b/packages/core/test/util/decorators_spec.ts index 3626022f1445db..dea596a4390b88 100644 --- a/packages/core/test/util/decorators_spec.ts +++ b/packages/core/test/util/decorators_spec.ts @@ -121,7 +121,7 @@ export function main() { }); - it('should ensure that we dont accidently patch native objects', () => { + it('should ensure that we dont accidentally patch native objects', () => { expect(() => { (Class)({constructor: Object}); }).toThrowError('Can not use native Object as constructor'); diff --git a/packages/core/test/view/provider_spec.ts b/packages/core/test/view/provider_spec.ts index 0fa98275da4fd4..642946d09165e8 100644 --- a/packages/core/test/view/provider_spec.ts +++ b/packages/core/test/view/provider_spec.ts @@ -172,7 +172,7 @@ export function main() { .toThrowError('No provider for Dep!'); }); - it('should inject from a parent elment in a parent view', () => { + it('should inject from a parent element in a parent view', () => { createAndGetRootNodes(compViewDef([ elementDef( NodeFlags.None, null !, null !, 1, 'div', null !, null !, null !, null !, diff --git a/packages/language-service/src/diagnostics.ts b/packages/language-service/src/diagnostics.ts index fd848368629dcd..340a39ca3b8124 100644 --- a/packages/language-service/src/diagnostics.ts +++ b/packages/language-service/src/diagnostics.ts @@ -179,7 +179,7 @@ class ExpressionDiagnosticsVisitor extends TemplateAstChildVisitor { this.push(ast); - // Find directive that refernces this template + // Find directive that references this template this.directiveSummary = ast.directives.map(d => d.directive).find(d => hasTemplateReference(d.type)) !; diff --git a/packages/language-service/src/expressions.ts b/packages/language-service/src/expressions.ts index 3d6b567a3fc242..56a4f0139a37ec 100644 --- a/packages/language-service/src/expressions.ts +++ b/packages/language-service/src/expressions.ts @@ -684,7 +684,7 @@ function getReferences(info: TemplateInfo): SymbolDeclaration[] { name: reference.name, kind: 'reference', type: type || info.template.query.getBuiltinType(BuiltinType.Any), - get definition() { return getDefintionOf(info, reference); } + get definition() { return getDefinitionOf(info, reference); } }); } } @@ -739,7 +739,7 @@ function getVarDeclarations(info: TemplateInfo, path: TemplateAstPath): SymbolDe } result.push({ name, - kind: 'variable', type, get definition() { return getDefintionOf(info, variable); } + kind: 'variable', type, get definition() { return getDefinitionOf(info, variable); } }); } } @@ -771,7 +771,7 @@ function refinedVariableType( return type; } -function getDefintionOf(info: TemplateInfo, ast: TemplateAst): Definition|undefined { +function getDefinitionOf(info: TemplateInfo, ast: TemplateAst): Definition|undefined { if (info.fileName) { const templateOffset = info.template.span.start; return [{ diff --git a/packages/language-service/src/types.ts b/packages/language-service/src/types.ts index fe29b2724746fa..7cbcb55dde2768 100644 --- a/packages/language-service/src/types.ts +++ b/packages/language-service/src/types.ts @@ -32,7 +32,7 @@ export interface Span { /** * The information `LanguageService` needs from the `LanguageServiceHost` to describe the content of * a template and the - * langauge context the template is in. + * language context the template is in. * * A host interface; see `LanguageSeriviceHost`. * @@ -319,7 +319,7 @@ export interface SymbolTable { */ export interface Signature { /** - * The arguments of the signture. The order of `argumetnts.symbols()` must be in the order + * The arguments of the signture. The order of `arguments.symbols()` must be in the order * of argument declaration. */ readonly arguments: SymbolTable; @@ -630,7 +630,7 @@ export interface SymbolDeclaration { } /** - * A section of hover text. If the text is code then langauge should be provided. + * A section of hover text. If the text is code then language should be provided. * Otherwise the text is assumed to be Markdown text that will be sanitized. */ export interface HoverTextSection { @@ -640,7 +640,7 @@ export interface HoverTextSection { readonly text: string; /** - * The langauge of the source if `text` is a souce code fragment. + * The language of the source if `text` is a souce code fragment. */ readonly language?: string; } @@ -651,7 +651,7 @@ export interface HoverTextSection { export interface Hover { /** * The hover text to display for the symbol at the hover location. If the text includes - * source code, the section will specify which langauge it should be interpreted as. + * source code, the section will specify which language it should be interpreted as. */ readonly text: HoverTextSection[]; diff --git a/packages/language-service/test/language_service_spec.ts b/packages/language-service/test/language_service_spec.ts index 0aa55371858011..976cae1c30c884 100644 --- a/packages/language-service/test/language_service_spec.ts +++ b/packages/language-service/test/language_service_spec.ts @@ -30,7 +30,7 @@ describe('service without angular', () => { () => expect(() => ngService.getDiagnostics(fileName)).not.toThrow()); it('should not crash a completion', () => expect(() => ngService.getCompletionsAt(fileName, position)).not.toThrow()); - it('should not crash a get defintion', + it('should not crash a get definition', () => expect(() => ngService.getDefinitionAt(fileName, position)).not.toThrow()); it('should not crash a hover', () => expect(() => ngService.getHoverAt(fileName, position))); }); \ No newline at end of file diff --git a/packages/language-service/test/ts_plugin_spec.ts b/packages/language-service/test/ts_plugin_spec.ts index bbed4adcc7d696..4094055ca4ec86 100644 --- a/packages/language-service/test/ts_plugin_spec.ts +++ b/packages/language-service/test/ts_plugin_spec.ts @@ -142,7 +142,7 @@ describe('plugin', () => { it('should reference the component', () => { contains('app/parsing-cases.ts', 'test-comp-after-test', 'name'); }); // TODO: Enable when we have a flag that indicates the project targets the DOM - // it('should refernce the element if no component', () => { + // it('should reference the element if no component', () => { // contains('app/parsing-cases.ts', 'test-comp-after-div', 'innerText'); // }); }); @@ -163,7 +163,7 @@ describe('plugin', () => { 'app/expression-cases.ts', 'myField', 'Identifier \'myField\' refers to a private member of the component'); }); - it('should report numeric operator erros', + it('should report numeric operator errors', () => { expectSemanticError('app/expression-cases.ts', 'mod', 'Expected a numeric type'); }); describe('in ngFor', () => { function expectError(locationMarker: string, message: string) { diff --git a/packages/platform-browser-dynamic/test/testing_public_browser_spec.ts b/packages/platform-browser-dynamic/test/testing_public_browser_spec.ts index b7d735abfbb178..b9afecaaf5af79 100644 --- a/packages/platform-browser-dynamic/test/testing_public_browser_spec.ts +++ b/packages/platform-browser-dynamic/test/testing_public_browser_spec.ts @@ -31,7 +31,7 @@ class FancyService { class ExternalTemplateComp { } -@Component({selector: 'bad-template-comp', templateUrl: 'non-existant.html'}) +@Component({selector: 'bad-template-comp', templateUrl: 'non-existent.html'}) class BadTemplateUrl { } @@ -110,7 +110,7 @@ export function main() { () => { done.fail('Expected test to fail, but it did not'); }, (err: any) => { expect(err.message) - .toEqual('Uncaught (in promise): Failed to load non-existant.html'); + .toEqual('Uncaught (in promise): Failed to load non-existent.html'); done(); }); restoreJasmineIt(); diff --git a/packages/platform-browser/src/security/html_sanitizer.ts b/packages/platform-browser/src/security/html_sanitizer.ts index 686cc4a897a573..c0cccf35309847 100644 --- a/packages/platform-browser/src/security/html_sanitizer.ts +++ b/packages/platform-browser/src/security/html_sanitizer.ts @@ -102,7 +102,7 @@ const HTML_ATTRS = tagSet( 'scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,' + 'valign,value,vspace,width'); -// NB: This currently conciously doesn't support SVG. SVG sanitization has had several security +// NB: This currently consciously doesn't support SVG. SVG sanitization has had several security // issues in the past, so it seems safer to leave it out if possible. If support for binding SVG via // innerHTML is required, SVG attributes should be added here. diff --git a/packages/platform-webworker/src/web_workers/shared/message_bus.ts b/packages/platform-webworker/src/web_workers/shared/message_bus.ts index 16ccefae4c9ffa..bf158c927fd02d 100644 --- a/packages/platform-webworker/src/web_workers/shared/message_bus.ts +++ b/packages/platform-webworker/src/web_workers/shared/message_bus.ts @@ -84,7 +84,7 @@ export interface MessageBusSink { * Sets up a new channel on the MessageBusSink. * MUST be called before calling to on the channel. * If runInZone is true the sink will buffer messages and send only once the zone exits. - * if runInZone is false the sink will send messages immediatly. + * if runInZone is false the sink will send messages immediately. */ initChannel(channel: string, runInZone: boolean): void; diff --git a/packages/platform-webworker/test/web_workers/shared/message_bus_spec.ts b/packages/platform-webworker/test/web_workers/shared/message_bus_spec.ts index 52705057d00eb6..ffbdb3450c836a 100644 --- a/packages/platform-webworker/test/web_workers/shared/message_bus_spec.ts +++ b/packages/platform-webworker/test/web_workers/shared/message_bus_spec.ts @@ -142,7 +142,7 @@ export function main() { }), 500); - it('should send messages immediatly when run outside the zone', + it('should send messages immediately when run outside the zone', inject([AsyncTestCompleter, NgZone], (async: AsyncTestCompleter, zone: MockNgZone) => { bus = createConnectedMessageBus(); setup(false, zone); diff --git a/packages/router/src/url_tree.ts b/packages/router/src/url_tree.ts index 48a792d8927ada..19908fadf41f9d 100644 --- a/packages/router/src/url_tree.ts +++ b/packages/router/src/url_tree.ts @@ -149,7 +149,7 @@ export class UrlSegmentGroup { forEach(children, (v: any, k: any) => v.parent = this); } - /** Wether the segment has child segments */ + /** Whether the segment has child segments */ hasChildren(): boolean { return this.numberOfChildren > 0; } /** Number of child segments */ diff --git a/packages/router/test/integration.spec.ts b/packages/router/test/integration.spec.ts index f130aefc5c2530..65440eba225d6b 100644 --- a/packages/router/test/integration.spec.ts +++ b/packages/router/test/integration.spec.ts @@ -455,7 +455,7 @@ describe('Integration', () => { expect(fixture.nativeElement).toHaveText('team 22 [ user victor, right: simple ]'); }))); - it('should support secondary routes in seperate commands', + it('should support secondary routes in separate commands', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); diff --git a/tools/@angular/tsc-wrapped/src/evaluator.ts b/tools/@angular/tsc-wrapped/src/evaluator.ts index 6b5f4d36230540..004a8d221f1966 100644 --- a/tools/@angular/tsc-wrapped/src/evaluator.ts +++ b/tools/@angular/tsc-wrapped/src/evaluator.ts @@ -359,7 +359,7 @@ export class Evaluator { if (expression && this.isFoldable(propertyAccessExpression.expression)) return (expression)[member]; if (isMetadataModuleReferenceExpression(expression)) { - // A select into a module refrence and be converted into a reference to the symbol + // A select into a module reference and be converted into a reference to the symbol // in the module return recordEntry( {__symbolic: 'reference', module: expression.module, name: member}, node); diff --git a/tools/@angular/tsc-wrapped/src/options.ts b/tools/@angular/tsc-wrapped/src/options.ts index 4e3c7e9df3886a..9ef44cb45c7f1b 100644 --- a/tools/@angular/tsc-wrapped/src/options.ts +++ b/tools/@angular/tsc-wrapped/src/options.ts @@ -28,7 +28,7 @@ interface Options extends ts.CompilerOptions { // Whether to generate a flat module index of the given name and the corresponding // flat module metadata. This option is intended to be used when creating flat // modules similar to how `@angular/core` and `@angular/common` are packaged. - // When this option is used the `package.json` for the library should refered to the + // When this option is used the `package.json` for the library should referred to the // generated flat module index instead of the library index file. When using this // option only one .metadata.json file is produced that contains all the metadata // necessary for symbols exported from the library index. diff --git a/tools/@angular/tsc-wrapped/test/collector.spec.ts b/tools/@angular/tsc-wrapped/test/collector.spec.ts index f179d64fe76c14..978c973bac1189 100644 --- a/tools/@angular/tsc-wrapped/test/collector.spec.ts +++ b/tools/@angular/tsc-wrapped/test/collector.spec.ts @@ -775,7 +775,7 @@ const FILES: Directory = { } getHeroes() { - this._heroService.getHeroesSlowly().then(heros => this.heroes = heros); + this._heroService.getHeroesSlowly().then(heroes => this.heroes = heroes); } }`, 'hero.ts': `