My application architecture is simple Front end using ionic-angularjs with backend nodejs interfacing with mongodb. My application will require ability to submit data related to reimbursement (say few details such as expenseType, amount, pupose and say date). I am able to design a form which then submits it via a controller using http:post method.
Now comes the stage where I want to provide an ability to edit the form in case I think few details are incorrect. What I have done so far is from my history page, where using cards I am able to display all records submitted till date< I am providing an edit option. The edit captures the claimID from the card scope and then gets the data from backend using http GET method. The data now is available with the controller. I then store them in scope variable and access them from the html form.
Doing this I felt I am making too many calls to the server side for a simple modification request. Wanted to find out if there are other methods and better ones.