diff --git a/src/slick.component.ts b/src/slick.component.ts index e31bf75..5c01a67 100644 --- a/src/slick.component.ts +++ b/src/slick.component.ts @@ -60,7 +60,7 @@ export class SlickComponent implements AfterViewInit, OnDestroy { const self = this; this.zone.runOutsideAngular(() => { - jQuery(this.el.nativeElement)[0].innerHTML = ''; + jQuery(this.el.nativeElement)[0].textContent = ''; this.$instance = jQuery(this.el.nativeElement); this.$instance.on('init', (event, slick) => { this.zone.run(() => {