Skip to content

Commit 9784c2f

Browse files
Foxandxsswardbell
authored andcommitted
docs(style-guide): clean 05-15
closes angular#1487
1 parent 9ed12f4 commit 9784c2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

public/docs/_examples/style-guide/ts/05-15/app/heroes/hero-list/hero-list.component.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// #docregion example
22
import { Component, OnInit } from '@angular/core';
33

4-
import { Hero, HeroService } from '../shared/index';
4+
import { Hero, HeroService } from '../shared';
55

66
@Component({
77
selector: 'toh-hero-list',
@@ -10,13 +10,13 @@ import { Hero, HeroService } from '../shared/index';
1010
export class HeroListComponent implements OnInit {
1111
heroes: Hero[];
1212
constructor(private heroService: HeroService) {}
13-
getHeros() {
13+
getHeroes() {
1414
this.heroes = [];
1515
this.heroService.getHeroes()
1616
.subscribe(heroes => this.heroes = heroes);
1717
}
1818
ngOnInit() {
19-
this.getHeros();
19+
this.getHeroes();
2020
}
2121
}
2222
// #enddocregion example

0 commit comments

Comments
 (0)