How to refresh component in Angular [in standby]

-1

I have a website where I show different sections in the menu according to the type of user that accesses.

All of them are loaded with different calls through API.

The problem comes when the user refreshes the screen, when reloading the data I am generating errors, which, I have been correcting, to the point of having everything working, except that the menu fields that depend on these API data does not refresh me and the menu is "half-baked".

In my tests I see that at the moment I change the section, everything looks good again, therefore, I think, I only have the event to refresh the screen (the template) once the data reload is finished by pressing F5, but I do not see how to do it.

How can the view be reloaded to show the data I already have in the component?

    
asked by Diego 31.10.2018 в 08:59
source

0 answers