Well my problem is this: I have a web application with AngularJS
with which I get data from dogs in a database with Servicio REST
implemented with Jersey
, and I want to show them in a table. The problem is that when the page loads the request through the service to the database and as it takes to bring the data from the database, first render the HTML
, and as at that moment the variable that receives the Data from the database ( listaMascotas
) has nothing, shows nothing. And well, that's the question, what strategies to solve this problem can be used? I've been doing some research but I can not find anything to solve the problem. I'm new in this AngularJS
.
Here is the view of the page and where I intend to see the table, I need to learn Bootstrap
to put the style:
This is the controller in charge of the table ( ListController.js
):
And this is the service I did ( mascotas.js
), which in turn is used by the controller ListController
, and which is responsible for making requests to the back-end: