I am new to AngularJS. I have an object passed from another page which is having data and I need use this object and populate the values in respective input controls like label,textbox. After populating the values in respective control, I should be able to Save it to the db.
put on hold as off-topic by Chris Hayes, Rahil Wazir, Karl-Johan Sjögren, sbaaaang, Andrew Counts 15 hours agoThis question appears to be off-topic. The users who voted to close gave this specific reason:
|
|||
|
If I understand you correctly there are a couple of ways you can do this. To get data from another page, which I'm assuming you can control, use the $http library in angular like this ( from the angular docs).
see https://docs.angularjs.org/api/ng/service/$http. To insert it into the new page, first create the input form, and tell the computer that we want the value of the textbox to match the value of the variable
Then you add an event listener for the form submit using angularjs (I'll let you google that one) then submit the contents of formData.textbox-data to your server. Hope that helps |
|||
|