Currently, I am working on a project in Angular where I need to display a list of objects in a table. Take a look at the image below:
My goal is to have the specific text in the table swapped with a textfield when clicked. This will allow me to edit the text and save the changes through a controller.
While I know how to add an ng-click
action to the text, I am unsure about how to target the exact text for the swap and how to save the input from the textfield (assuming it has a ng-model
bound to it). Would using the object IDs be a good approach? Or perhaps assigning a controller for each object to handle its logic? What would be the most effective way to achieve this task? Thank you!