So I have this slider component that use materializecss javascript. So after it\'s rendered, I need to execute
$(document).ready(function(){ $(\'body\').on(\
ngAfterViewInit() of AppComponent is a lifecycle callback Angular calls after the root component and it's children have been rendered and it should fit for your purpose.
ngAfterViewInit()
AppComponent
See also https://angular.io/guide/lifecycle-hooks