Change only the specific value after receving the specific data from web sockets

前端 未结 1 1256
醉梦人生
醉梦人生 2020-12-22 05:29

Below I\'m showing a specific part of a long JSON structure

var user = {
    map: {
        width: 785,
        height: 791
    },
    image: {
        name:         


        
相关标签:
1条回答
  • 2020-12-22 05:58

    As long as you update your JSON structure (actually your JavaScript object) from within an AngularJS handler function, any changes to the data are reflected to the rendered view immediately after handler functions have completed.

    0 讨论(0)
提交回复
热议问题