angularjs copy scope variable and apply back code example Example: angular copy var copiedItem = angular.copy(item);