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

Commit ad1f499

Browse files
committed
docs(cookbook/graphql): Add docregions
1 parent 52b1d69 commit ad1f499

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

public/docs/_examples/heroes-graphql/ts/app/hero-detail.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export class HeroDetailComponent implements OnInit {
2828
private apollo: Angular2Apollo
2929
) {}
3030

31+
// #docregion service-fetch-by-id
3132
ngOnInit(): void {
3233
this.route.params.subscribe(params => {
3334
const heroId = params['id'];
@@ -51,6 +52,7 @@ export class HeroDetailComponent implements OnInit {
5152
// #enddocregion graphql-query
5253
});
5354
}
55+
// #enddocregion service-fetch-by-id
5456

5557
// #docregion save
5658
save(): void {

0 commit comments

Comments
 (0)