Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access Slick modal from component #54

Open
mina-thomas opened this issue Jan 14, 2019 · 1 comment
Open

Access Slick modal from component #54

mina-thomas opened this issue Jan 14, 2019 · 1 comment

Comments

@mina-thomas
Copy link

mina-thomas commented Jan 14, 2019

I want to access slick modal from component, I tried it using ViewChild but it didn't work.
here is my code:

<ngx-slick class="carousel col-md-12" #slickModal="slick-modal" [config]="slideConfig" (afterChange)="afterChange($event)">
<div ngxSlickItem *ngFor="let slide of slides; let i = index" class="slide">

@ViewChild('slickModal') public slickModal;

but i always have undefined in slickModal when this.slickModal.slickGoTo(2);

any help?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants