Deep copying objects in angular?

后端 未结 3 443
野性不改
野性不改 2020-12-05 01:39

I wonder if there is away to avoid copying references to objects when you need to create a simple object which has an array of embedded objects.The situation is as follow: I

3条回答
  •  感情败类
    2020-12-05 02:10

    This is the best documentation available

    https://docs.angularjs.org/api/ng/function/angular.copy

    there is a live example as well on the page which is self illustrative.

提交回复
热议问题