'ngFor not auto re-rendering, possiblity to auto bind?

I am currently doing a ngFor on options for select input. The problem is that until my fetch request of data is not finish, the array who will be render is empty.

So my Select input is empty on the page, and when my get request is finish the array is updated but not my frontend.

I found a solution who is to fire this.changeDetection.detectChanges() just after my array update. But it looks strange, there is no possibility to bind it automatically?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source