I am trying to do something simple and I keep getting a
NG0100: Expression has changed after it was checked
I have a component that defines a class variable loading and sets it to false
then ngOnInit (tried after viewInit as well)
I set it to loading to true
await the api call
set loading to false
I use this in my template to show wait on showing data until it is loaded
I know why the error is happening, and I can fix with using ChangeDetectionRef, but I have read that I should generally avoid that.
Is there a good solution to this?