angular detects when the dom of a component has finished rendering

I got around this issue by using ngAfterViewChecked. On every check, i get the scrollHeight of the components body. Before it renders, it will be 0, so checking if there’s been a change on the scrollHeight attribute, works for my use case.

Thanks for all the comments, that actually made me think of this solution

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top