I've been search for quite a while, but i wasn't able to find a good solution to this. I have to trigger a function/event, as soon as the DOM of a component finished rendering. I need to access the height of the component, so ngAfterViewInit won't work, as that is called before the DOM is rendered. I tried ngAfterViewChecked, but this gets called multiple times. As the function that gets executed is part of a wrapper-app, i have no access to that either, and i absolutely need to make sure it only gets fired once. I was thinking about using ngAfterViewChecked with some sort of debounce, but this feels (and probably is) wrong. The alternative would be to trigger a function from the template, when the ngFor loop reaches the last item. But again, that just feels wrong.
Any input is appreciated