Hi,
I am trying to use ix-pagination component for angular, but I can’t understand how to use the pageSelected event, there is not an example in the preview.
Can anyone help?
Hi,
I am trying to use ix-pagination component for angular, but I can’t understand how to use the pageSelected event, there is not an example in the preview.
Can anyone help?
Hi its working like any other angular event binding. Here is a good tutorial how event binding works in angular: Event binding • Angular
Example:
import { Component } from '@angular/core';
@Component({
selector: 'app-example',
template: ` <ix-pagination count="100" (pageSelected)="pageSelected($event)"></ix-pagination> `,
})
export default class Pagination {
pageSelected(evt: CustomEvent) {
alert(evt.detail);
}
}