Hi I\'m starting with Angular 2 and trying to make this carousel plugin to work: slick
After a while I managed to make it work like a Component like this:
In my case the trick with *ngIf was not enough. Im calling REST service in ngOnInit and receiving response where in subscription I'm defining the array. The only possible workaround for me was to add slick items manually by slick function 'slickAdd' directly from typescript.
jQuery('.my-slick').slick('slickAdd', 'ahoj
');
Maybe it will help somebody...