Array values are changes when we are assigning the scope array values.
Solution : angular.Copy
EX:
for (var i = 0; i < $scope.teamMembers.length; i++) {
var newTeamMember = angular.copy($scope.teamMember[i]);
$scope.team.teamMembers.push(newTeamMember);
}
Solution : angular.Copy
EX:
for (var i = 0; i < $scope.teamMembers.length; i++) {
var newTeamMember = angular.copy($scope.teamMember[i]);
$scope.team.teamMembers.push(newTeamMember);
}