How to call the afterchange from already existing table

Hi @user123

Here https://stackblitz.com/edit/angular-5ykm8c-cvnjzi?file=src/app/heroes/heroes.component.ts is a demo for the afterChange hook