So I have this slider component that use materializecss javascript. So after it\'s rendered, I need to execute
$(document).ready(function(){ $(\'body\').on(\
Actually ngAfterViewInit() will initiate only once when the component initiate.
ngAfterViewInit()
If you really want a event triggers after the HTML element renter on the screen then you can use ngAfterViewChecked()
ngAfterViewChecked()