Ionic slide option changed but something wrong

oldway:
slideOptions = {
loop: false,
pager: true,
noSwipingClass: ‘swiper-no-swiping’,
paginationClickable: true,
paginationBulletRender: function (index, className) {
return ‘’ + (index + 1) + ‘’;
}
};
new
ngAfterViewInit() {
this.slider.loop = false;
this.slider.paginationType = ‘bullets’;
this.slider.paginationBulletRender = (index: number, className: string) => {
return <span class="${className}">${index + 1}</span>;
};
}

  1. but if i use paginationBulletRender bullet click doesn’t work ,
  2. and noSwipingClass: ‘swiper-no-swiping’, this option gone?! it think it`s old perfect way
    now i just stuck in; need help please

oh man it was changed :))
this.slider.loop = false;
this.slider.paginationBulletRender = (index: number, className: string) => {
return <button class="${className}" aria-label="Go to slide ${index + 1}" data-slide-index="${index}">${index + 1}</button>;
};