Skip to content

Commit 5cc9129

Browse files
charleshypkabdel-ships-it
authored andcommitted
docs: fix typos (angular#3155)
1 parent 369d35c commit 5cc9129

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

public/docs/_examples/dependency-injection/ts/app/heroes/hero.service.1.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ import { HEROES } from './mock-heroes';
55

66
@Injectable()
77
export class HeroService {
8-
getHeroes() { return HEROES; }
8+
getHeroes() { return HEROES; }
99
}

public/docs/_examples/dependency-injection/ts/app/providers.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export class Provider8Component {
194194
template: template,
195195
/*
196196
// #docregion providers-9-interface
197-
// FAIL! Can't use interface as provider token
197+
// FAIL! Can't use interface as provider token
198198
[{ provide: AppConfig, useValue: HERO_DI_CONFIG })]
199199
// #enddocregion providers-9-interface
200200
*/

public/docs/_examples/user-input/ts/app/keyup.components.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class KeyUpComponent_v1 {
2020
// #enddocregion key-up-component-1-class, key-up-component-1-class-no-type
2121
/*
2222
// #docregion key-up-component-1-class-no-type
23-
onKey(event:any) { // without type info
23+
onKey(event: any) { // without type info
2424
this.values += event.target.value + ' | ';
2525
}
2626
// #enddocregion key-up-component-1-class-no-type

public/docs/ts/latest/guide/appmodule.jade

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ a#declarations
7070

7171
.alert.is-important
7272
:marked
73-
**Only _declarables_** — _components_, _directives_ and _pipes_ — belong in the `declarations` array.  
73+
**Only _declarables_** — _components_, _directives_ and _pipes_ — belong in the `declarations` array.
7474
Don't put any other kind of class in `declarations`; _not_ `NgModule` classes, _not_ service classes, _not_ model classes.
7575

7676
a#bootstrap-array
@@ -110,7 +110,7 @@ l-main-section
110110
bootstraps the `AppModule` described above.
111111

112112
The _bootstrapping_ process sets up the execution environment,
113-
digs the _root_ `AppComponent` out of the module's `bootstrap` array,  
113+
digs the _root_ `AppComponent` out of the module's `bootstrap` array,
114114
creates an instance of the component and inserts it within the element tag identified by the component's `selector`.
115115

116116
The `AppComponent` selector — here and in most documentation samples — is `my-app`

0 commit comments

Comments
 (0)