docs: Adding type annotation to ngOnInit() to make it consistent with the class structure produced by the CLI (#43579)

PR Close #43579
This commit is contained in:
fusho-takahashi
2021-11-16 14:09:52 -08:00
committed by Andrew Kushnir
parent f218644784
commit 158ad09945
10 changed files with 10 additions and 10 deletions
@@ -26,7 +26,7 @@ export class HeroesComponent implements OnInit {
constructor() { }
ngOnInit() {
ngOnInit(): void {
}
}
@@ -24,7 +24,7 @@ export class HeroesComponent implements OnInit {
constructor() { }
ngOnInit() {
ngOnInit(): void {
}
// #docregion on-select
@@ -18,7 +18,7 @@ export class HeroDetailComponent implements OnInit {
constructor() { }
ngOnInit() {
ngOnInit(): void {
}
}
@@ -15,7 +15,7 @@ export class HeroesComponent implements OnInit {
constructor() { }
ngOnInit() {
ngOnInit(): void {
}
onSelect(hero: Hero): void {
@@ -12,7 +12,7 @@ export class HeroDetailComponent implements OnInit {
constructor() { }
ngOnInit() {
ngOnInit(): void {
}
}
@@ -24,7 +24,7 @@ export class HeroesComponent implements OnInit {
constructor(private heroService: HeroService, private messageService: MessageService) { }
// #docregion ng-on-init
ngOnInit() {
ngOnInit(): void {
this.getHeroes();
}
// #enddocregion ng-on-init
@@ -13,7 +13,7 @@ export class DashboardComponent implements OnInit {
constructor(private heroService: HeroService) { }
ngOnInit() {
ngOnInit(): void {
this.getHeroes();
}
@@ -14,7 +14,7 @@ export class HeroesComponent implements OnInit {
constructor(private heroService: HeroService) { }
ngOnInit() {
ngOnInit(): void {
this.getHeroes();
}
@@ -13,7 +13,7 @@ export class DashboardComponent implements OnInit {
constructor(private heroService: HeroService) { }
ngOnInit() {
ngOnInit(): void {
this.getHeroes();
}
@@ -13,7 +13,7 @@ export class HeroesComponent implements OnInit {
constructor(private heroService: HeroService) { }
ngOnInit() {
ngOnInit(): void {
this.getHeroes();
}