Well,I want to hide pagination.Like below.
constructor(public mainService: MainService) {
mainService.getData().subscribe(datas => {
if (datas.length >= 2) {
this.slides.pager = true;
} else {
this.slides.pager = false;
}
this.handleData(datas);
});
}
I remove pager
from <ion-slides>
in html.I want to control pagination's showing status by the code.And when the code this.slides.pager=true
executed, the pagination still can't show.