Property 'freeMode' does not exist on type 'Slides'

Hi,

I tried to use:

ngAfterViewInit() {
this.slides.freeMode = true;
}

but I get this issue above. I found an answer by @jgw9617 that says to switch from angular 2 lifecycle events to ionic lifecycle events ionViewDidLoad and tried this:

ionViewDidLoad() {
this.slides.freeMode = true;
}

Somehow I still got the same issue…
I did call “@ViewChild(Slides) slides: Slides;” and the lifecycle events in the class. What do I do wrong?