'Get current page and move to specific page in NgPrime datatable

I am using datatable from primefaces - primeNg. Can I get the current page I am in and set the datatable to particular page programatically?

I saw that datatable uses pagination component within, but how to access it using @ViewChild? Any help will be appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source