I've been stuck on this problem for a while. I have a data table in my application and there are some fields the user can modify for each record in the table.
The user is able to then click a button and save all the changes which will fire off a query to the database to update the records. Instead of passing every single record in my table (the data is just an array), I want to just pass the records that have been modified.
For example: Original players[0]:
{ "name": "player 1", "joinDate": "06/25/2018", "ppg": "28.5" }
After user modifies it:
{ "name": "player 1", "joinDate": "06/25/2018", "ppg": "30.9" }
Ideally I just want to send that one record or n amount of records that have been modified. I've seen this solution Angular update object in object array but it seems like it is for NgClass, NgStyle etc's.
Would appreciate some help.
