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:
hilmer-martin 2021-02-06 14:36:59 +01:00 committed by Alex Rickabaugh
parent 9dada8a2dd
commit e3213f6783
1 changed files with 1 additions and 2 deletions

View File

@ -19,7 +19,7 @@ export class HeroesComponent implements OnInit {
heroes = HEROES;
// #enddocregion component
// #docregion on-select
selectedHero: Hero;
selectedHero?: Hero;
// #enddocregion on-select
constructor() { }
@ -35,4 +35,3 @@ export class HeroesComponent implements OnInit {
// #docregion component
}
// #enddocregion component