copy object function setEdittedBookmark(bookmark) { $scope.editedBookmark = angular.copy(bookmark); }