fix(docs-infra): fix parameters with @Optional() decorator do not match declared, optional type (#35150)
PR Close #35150
This commit is contained in:

committed by
Misko Hevery

parent
5b80e944be
commit
79742a397f
@ -248,7 +248,7 @@ export class TestViewProvidersComponent {
|
||||
export class ExternalTemplateComponent implements OnInit {
|
||||
serviceValue: string;
|
||||
|
||||
constructor(@Optional() private service: ValueService) { }
|
||||
constructor(@Optional() private service?: ValueService) { }
|
||||
|
||||
ngOnInit() {
|
||||
if (this.service) { this.serviceValue = this.service.getValue(); }
|
||||
|
Reference in New Issue
Block a user