0
I’m making an HTTP request in Angular 4, but I need to listen to it and show it in the template in real time, that is to say, as long as the information is automatically registered in the grid.
ngOnInit() {
this.userService.lista()
.subscribe(data => { this.usuarios = data });
}
this and the return of the request on the component can help me?
This is only when it starts the template. To add as it is inserted, you can do it from the front or, in the method
save
of your application, the return of it you push users for example. To answer more accurately, would need more details...– Felipe Avelar