Skip to content

Instantly share code, notes, and snippets.

/gist:4dbf9be34e765940e90e Secret
Created Dec 6, 2014

Embed
What would you like to do?
$scope.remove = (id) ->
return unless confirm('Are you sure?')
$scope.formDisabled = true
person = $scope.persons[id]
Person.delete({personId: person.id}, ->
$scope.persons.splice(id, 1)
$scope.formDisabled = false
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.