58
rated 0 times
[
60]
[
2]
/ answers: 1 / hits: 43795
/ 9 Years ago, mon, april 20, 2015, 12:00:00
I want to assign some values when a button click event happens via event parameter:
$scope.update = function(context) {
$scope.master = context;
};
I have assigned user
values to $scope.master
.
Now i am seeing angular.copy(). So I wrote the code with angular.copy.
$scope.update = function(context) {
$scope.master = angular.copy(context)
};
Both are doing same, so what is the difference? Please tell me about the difference between angular.copy()
and equal(=)
.
More From » angularjs