What is the difference between angular.copy() and an assignment (=)?

As can be read here angular.copy() performs a deep copy (cf. “clone”) of the argument – essentially creating a new object – whereas using the assignment operator = just assigns reference‘s.

Thus in the latter case, if you we’re to change something in $scope.master you would also change context.

Cheers,

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)