Frutis Frutis - 1 year ago 74
Javascript Question

How to deep clone this part of javascript?

still very new in js overall and i'm trying to deep clone this part of code.

$scope.add = function() {

If anyone could help me cloning this, would be grateful. Thanks

Answer Source

use angular's .copy() method to clone.

like this

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download