I am not being able to get a reference to the Slides in ionic2.
<ion-slides #slides [options]="mySlideOptions" (ionDidChange)="onSlideChanged()" >
{
@ViewChild('slides') slider: Slides;
console.log(this.slider.getActivityIndex()); returns error undefined!
Please tell me how can I get a reference to my slides.