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:
parent
e49fc96ed3
commit
644f1b3924
|
@ -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) { }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue