I have a ngFor with lots of elements being rendered and I want to show a spinner while the items are not only loaded but also rendered.
I know how I can display the spinner when loading items from the server (i.e. observables), but that only takes a little time in my case. I can see that majority of the time is spent by browser rendering all the ngFor elements and I dont know how to make sure that spinner is still displayed for this process. I tried ngAfterViewChecked lifecycle hook but thats also triggered before ngFor finishes.
So I wonder is there any way to hook into this process? Alternatively can we force Angular2/browser to display ngFor items incrementally? I.e. show the items as they are being rendered rather show all of them at once after creating templates.
I am using Angular 2.0.0. Any help appreciated.