diff --git a/ui-carousel/ui-carousel.component.ts b/ui-carousel/ui-carousel.component.ts index 6300fb92..249101cf 100644 --- a/ui-carousel/ui-carousel.component.ts +++ b/ui-carousel/ui-carousel.component.ts @@ -39,7 +39,7 @@ import { UICarouselItemComponent } from '../ui-carousel-item/ui-carousel-item.co export class UICarouselComponent implements OnInit { private nextSubject: Subject = new Subject(); private prevSubject: Subject = new Subject(); - private subscriptions: Subscription; + private subscriptions: Subscription = new Subscription(); @Output() onChange: EventEmitter = new EventEmitter(); @Input() height: string = "300px"; @Input() width: string = "100%";