Batch update/save/edit with Angular resource?

768 views
Skip to first unread message

Allan Siongco

unread,
Jun 5, 2013, 6:21:10 PM6/5/13
to ang...@googlegroups.com
Is this possible?


Use case:

There is an array of objects returned by the angular resource 
Each object has an "order" property
The UI allows the objects to be reordered via drag/drop
When the items are reordered, the "order" properties gets renumbered
All the items have to be persisted


I would appreciate any help. Thanks.
-Allan.

Allan Siongco

unread,
Jun 6, 2013, 11:44:20 AM6/6/13
to ang...@googlegroups.com
I actually figured this out... In case anyone wants to know, the way to do it is create a custom action for the resource like so:

Reply all
Reply to author
Forward
0 new messages