mirror of
https://github.com/angular/angular.git
synced 2026-11-24 15:37:51 -05:00
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:
committed by
Alex Rickabaugh
parent
f29baafa85
commit
4e2b9568c2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user