Ionic Slider on dynamic content

I need to use Ionic Slider on some dynamic content fetched from http, i need to use the freeMode and slidesPerView properties.

my html is like this:


<ion-content padding>
	<div *ngFor="let category of categories">
		<h6 class="slide-title" [innerHTML]=""></h6>
		<ion-slides pager="true" slidesPerView="3" loop="true" freeMode="true">
			<ion-slide *ngFor="let product of category.products">
				<img [src]="product.image" class="slide-image">


but it’s not working, can someone help me.