Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

docs: fix typos #3155

Merged
merged 1 commit into from
Feb 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import { HEROES } from './mock-heroes';

@Injectable()
export class HeroService {
getHeroes() { return HEROES; }
getHeroes() { return HEROES; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions public/docs/ts/latest/guide/appmodule.jade
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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`
Expand Down