阅读背景:

从客户端向nodejs发送对象的更新

来源:互联网 

Currently I have an Angular2 app that has an object with nested objects contained in it. The user follows a wizard to update any sections of the object and then clicks save. At the moment, I just send the entire object to the server side to be updated. To do the update, I get the database copy out of the DB and just set all the fields that the client copy has onto the database copy regardless of whether they have changed or not and then save it. This means I also have to loop through all of the nested objects and pull them out of the database and set all of their properties and so on. Everything gets updated, even if it didn't get changed.Currently I have an Angular2 app that has an ob




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: