Angular 4: Update template variable after API call [duplicate]
问题 This question already has answers here : Angular 2 View will not update after variable change in subscribe (4 answers) Closed last year . I have a Component-directive that I use to show a div with some information. This component is called SitesComponent and is included in a page. The main behavior of the SitesComponent is fine, except for this: I have an API call to a backend where I return some data, the backend call is executed well and I received the information but the variable is not