refactor(docs-infra): fix docs examples for tslint rule no-angle-bracket-type-assertion
(#38143)
This commit updates the docs examples to be compatible with the `no-angle-bracket-type-assertion` tslint rule. This is in preparation of updating the docs examples `tslint.json` to match the one generated for new Angular CLI apps in a future commit. PR Close #38143
This commit is contained in:

committed by
Alex Rickabaugh

parent
8aa29438ac
commit
3c7359f026
@ -43,8 +43,8 @@ export class AdBannerComponent implements OnInit, OnDestroy {
|
||||
const viewContainerRef = this.adHost.viewContainerRef;
|
||||
viewContainerRef.clear();
|
||||
|
||||
const componentRef = viewContainerRef.createComponent(componentFactory);
|
||||
(<AdComponent>componentRef.instance).data = adItem.data;
|
||||
const componentRef = viewContainerRef.createComponent<AdComponent>(componentFactory);
|
||||
componentRef.instance.data = adItem.data;
|
||||
}
|
||||
|
||||
getAds() {
|
||||
|
Reference in New Issue
Block a user