DataTableBodyComponent.prototype.updatePage = () => {}
export class DataTableBodyComponent {
updatePage(direction: string): void {
//some code...
}
}
<div [hidden]="true">
<ngx-datatable #dataTable
[rows]="[]"
[columns]="[]">
</ngx-datatable>
</div>
export class RootComponent implements OnInit{
@ViewChild('dataTable') dataTable: DatatableComponent;
ngOnInit(): void {
Object.getPrototypeOf(this.dataTable.bodyComponent).updatePage = () => {
console.log("Skip Update Page")
};
}
}