Using AngularJS “copy()” to avoid reference issues

后端 未结 1 1870
天涯浪人
天涯浪人 2021-02-05 10:52

I\'m displaying a list of items, each of which has an \"edit\"-button next to it. A click on that opens an angular ui modal window and the user can change some properties of the

相关标签:
1条回答
  • 2021-02-05 11:44

    Yep, using angular.copy() is absolutely appropriate here. If you want something more advanced you might want to checkout angular-history

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