#104402
ivanpeevski
Participant

Hi Andrea,

 

Since ajax calls are asynchronous, the component will always load before receiving the response from the ajax call. They will load at the same time only if dataSource is a static array.

If dataSource is set to a function, like in the example I shared, it should be set in the ngAfterViewInit() function.

 

Best regards,
Ivan Peevski

Smart UI Team
https://www.htmlelements.com/