docs: fix typos (#3155)
This commit is contained in:
parent
452c16dce2
commit
46363d18d6
|
@ -5,5 +5,5 @@ import { HEROES } from './mock-heroes';
|
|||
|
||||
@Injectable()
|
||||
export class HeroService {
|
||||
getHeroes() { return HEROES; }
|
||||
getHeroes() { return HEROES; }
|
||||
}
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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`
|
||||
|
|
Loading…
Reference in New Issue