Is there any framework or technique to simply update data edited in table and stored in mongoDB
I am using angularjs, node.js and mongoDB.
My 'by hand' idea is to:
- track edits in angular table that will return json with updated fields
- send REST request for update edited fields with proper document id
Using the Angular JS, we can do all CRUD operation. For your question i have answer,
In HTML
In controller,
and now in controller where to saving, check the data in save() function, where the list is existing in the table. If yes the call update(), else call add().