diff --git a/public/docs/_examples/dependency-injection/ts/app/heroes/hero.service.1.ts b/public/docs/_examples/dependency-injection/ts/app/heroes/hero.service.1.ts index dbae4c056c..2e0e3ca734 100644 --- a/public/docs/_examples/dependency-injection/ts/app/heroes/hero.service.1.ts +++ b/public/docs/_examples/dependency-injection/ts/app/heroes/hero.service.1.ts @@ -5,5 +5,5 @@ import { HEROES } from './mock-heroes'; @Injectable() export class HeroService { - getHeroes() { return HEROES; } + getHeroes() { return HEROES; } } diff --git a/public/docs/_examples/dependency-injection/ts/app/providers.component.ts b/public/docs/_examples/dependency-injection/ts/app/providers.component.ts index d74b25d780..a96bfce99e 100644 --- a/public/docs/_examples/dependency-injection/ts/app/providers.component.ts +++ b/public/docs/_examples/dependency-injection/ts/app/providers.component.ts @@ -194,7 +194,7 @@ export class Provider8Component { template: template, /* // #docregion providers-9-interface - // FAIL! Can't use interface as provider token + // FAIL! Can't use interface as provider token [{ provide: AppConfig, useValue: HERO_DI_CONFIG })] // #enddocregion providers-9-interface */ diff --git a/public/docs/_examples/user-input/ts/app/keyup.components.ts b/public/docs/_examples/user-input/ts/app/keyup.components.ts index aaf62bebaf..94ed1ae423 100644 --- a/public/docs/_examples/user-input/ts/app/keyup.components.ts +++ b/public/docs/_examples/user-input/ts/app/keyup.components.ts @@ -20,7 +20,7 @@ export class KeyUpComponent_v1 { // #enddocregion key-up-component-1-class, key-up-component-1-class-no-type /* // #docregion key-up-component-1-class-no-type - onKey(event:any) { // without type info + onKey(event: any) { // without type info this.values += event.target.value + ' | '; } // #enddocregion key-up-component-1-class-no-type diff --git a/public/docs/ts/latest/guide/appmodule.jade b/public/docs/ts/latest/guide/appmodule.jade index ab9c68d258..24dce3423c 100644 --- a/public/docs/ts/latest/guide/appmodule.jade +++ b/public/docs/ts/latest/guide/appmodule.jade @@ -70,7 +70,7 @@ a#declarations .alert.is-important :marked - **Only _declarables_** — _components_, _directives_ and _pipes_ — belong in the `declarations` array.   + **Only _declarables_** — _components_, _directives_ and _pipes_ — belong in the `declarations` array. Don't put any other kind of class in `declarations`; _not_ `NgModule` classes, _not_ service classes, _not_ model classes. a#bootstrap-array @@ -110,7 +110,7 @@ l-main-section bootstraps the `AppModule` described above. The _bootstrapping_ process sets up the execution environment, - digs the _root_ `AppComponent` out of the module's `bootstrap` array,   + digs the _root_ `AppComponent` out of the module's `bootstrap` array, creates an instance of the component and inserts it within the element tag identified by the component's `selector`. The `AppComponent` selector — here and in most documentation samples — is `my-app`