I have created a ng-repeat of blocks where I would like to edit a block in a modal window and cancel the window to discard any changes. I have managed to get the modal window working and editing blocks as I want however I am trying to use angular.copy to create a backup of the original element and set it when cancel is clicked.I have created a ng-repeat of blocks where I wo