When the user clicks on a radio button I run:
$scope.clientClick = function() {
//do stuff
}
I have a form, and I would like half of the fields on the form to be cleared in the above method.
I have done:
$scope.clientClick = function() {
$scope.entry.first_name = '';
$scope.entry.last_name = '';
$scope.entry.email = '';
$scope.entry.tel = '';
$scope.entry.gender = '';
$scope.entry.job = '';
$scope.entry.age = '';
}
But is there an easier way rather than listing each field again?