docs: changes for typescript 2.7 (#40735)
Because of changes in Typescript a property must have an initializer or be set to undefined. PR Close #40735
This commit is contained in:
parent
9dada8a2dd
commit
e3213f6783
|
@ -19,7 +19,7 @@ export class HeroesComponent implements OnInit {
|
||||||
heroes = HEROES;
|
heroes = HEROES;
|
||||||
// #enddocregion component
|
// #enddocregion component
|
||||||
// #docregion on-select
|
// #docregion on-select
|
||||||
selectedHero: Hero;
|
selectedHero?: Hero;
|
||||||
// #enddocregion on-select
|
// #enddocregion on-select
|
||||||
|
|
||||||
constructor() { }
|
constructor() { }
|
||||||
|
@ -35,4 +35,3 @@ export class HeroesComponent implements OnInit {
|
||||||
// #docregion component
|
// #docregion component
|
||||||
}
|
}
|
||||||
// #enddocregion component
|
// #enddocregion component
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue