| $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