From dbc1fd8918e9a882b3194db9a36a208d77ee4862 Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Sun, 17 Apr 2016 16:45:24 +0200 Subject: [PATCH] clean newPerson model --- angular_app/js/controllers.js | 1 + 1 file changed, 1 insertion(+) diff --git a/angular_app/js/controllers.js b/angular_app/js/controllers.js index 9735920..e13737b 100644 --- a/angular_app/js/controllers.js +++ b/angular_app/js/controllers.js @@ -231,6 +231,7 @@ eventManControllers.controller('EventDetailsCtrl', ['$scope', '$state', 'Event', var personObj = new Person(person); personObj.$save(function(p) { $scope._addAttendee(angular.copy(p)); + $scope.newPerson = {}; }); } else { $scope._addAttendee(angular.copy(person));