I just started learning angular so it might be a silly question or I am just missing something.
Say, I have a main template index.html and I want to insert a partial template (which is a table) at some point in time. So I make one HTTP request to load the partial with ajax and then I also make another request to get the JSON data to fill up the table partial. Is this how it works?
When you deal with it on the server side, you get the data and sprinkle your template with variables before you respond. So there is only one request and client gets the partial already filled up with data.
Am I missing something or that's how it is and you get two trips to the server: one to get the data and the other to get the template?
Thanks