Reset form on submit
问题 I am submitting a form and then making all the field empty but it's not working. Form is getting submitted successfully but the fields are not getting reset. I am using angular-material for styling. Updated controller. Html <form name="myform"> <md-input-container> <label for="name">Contact Name</label> <input type="text" md-maxlength="20" required="" md-no-asterisk name="name" ng-model="info.name" md-autofoucs> <div ng-messages="myform.name.$error" role="alert"> <div ng-message="required"