I am new to type script and angular 4.
I created a component thats uses a service to get a list of room ids from a rest api. Then I use ngfor
to loop over this list and inside the loop I populate a new component and pass in the id
as an input
. Inside the onInit
method I then call the api again to get the details.
Somehow each compoment waits for the last one to have finished its onInit
method. The call to the api sometimes takes a few seconda which makes the ui really slow.
How should I implement this exactly?
Thanks for the help
Matt