I'm using ion-slides as the following:
<div *ngFor="let category of categories">
<h6 class="slide-title" [innerHTML]="category.name"></h6>
<ion-slides [loop]="true" [pager]="true" [slidesPerView]="3">
<ion-slide *ngFor="let product of category.products">
<img [src]="product.image" class="slide-image">
</ion-slide>
</ion-slides>
</div>
I'm getting the following error:
Unhandled Promise rejection: Template parse errors: Can't bind to 'slidesPerView' since it isn't a known property of 'ion-slides'.
<img [src]="product"): MainPage@12:43 ; Zone: ; Task: Promise.then ; Value: ....
can anyone help please.
ionic -v 2.2.1
cordova -v 6.5.0
Recently there was some changes in ion-slides. Make sure you have the latest ionic version (2.0.0). Also you can use slidesPerView without enclosing it in square brackets as follows
<ion-slides pager loop slidesPerView="3">
<ion-slide>
...
</ion-slide>
<ion-slides>