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,
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…