docs: fix interval type in the example (#43042)

`window.setInterval` returns a `number`, let's fix this example.

PR Close #43042
This commit is contained in:
Fabien BERNARD 2021-08-04 15:16:17 +02:00 committed by Andrew Kushnir
parent e49fc96ed3
commit 644f1b3924
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ export class AdBannerComponent implements OnInit, OnDestroy {
@Input() ads: AdItem[] = []; @Input() ads: AdItem[] = [];
currentAdIndex = -1; currentAdIndex = -1;
@ViewChild(AdDirective, {static: true}) adHost!: AdDirective; @ViewChild(AdDirective, {static: true}) adHost!: AdDirective;
interval: any; interval: number | undefined;
constructor(private componentFactoryResolver: ComponentFactoryResolver) { } constructor(private componentFactoryResolver: ComponentFactoryResolver) { }