As a continuation to this question:
angular primeng p-table pagination not working
I need a way to trigger html method from TypeScript. In the example in the question I need a way to run
table.reset()
from my TypeScript. The reason for that is that my current component is called whenever a different link is used (a menu) and each time the displayed is changed.
I have learned that in order to init the paginator fields, I need to use the reset()
method - BUT my problem is how to trigger this change.
For the first time there is no problem because I added it to the GET button I have but when the menu is used again I don't want to press the get button (I am triggering changes in the display using
ngAfterContentChecked()