title: Clear the form after submit angularjs
body: <p>hi i want to clear the form values after successfull completion. Houw should i implemnt</p>
  
  <pre><code>&lt;div ng-controller="employeelistController as listControl"&gt;
          &lt;div class="container form-group" ng-controller="addEmployee as addemp"&gt;
              &lt;form name="frmEmployee" ng-submit="Add(addemp.employee) &amp;&amp; frmEmpbloyee.$valid"&gt;
                  &lt;div class="col-lg-4 ctrmain"&gt;
                      &lt;div class="row"&gt;
                          &lt;div class="col-lg-6"&gt;
                              &lt;strong&gt;Employee No&lt;/strong&gt;
                          &lt;/div&gt;
                          &lt;div class="col-lg-6"&gt;
                              &lt;input type="number" id="txtEmpId" ng-model="addemp.employee.employeeid" required class="form-control" /&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
  
                      &lt;div class="row"&gt;
                          &lt;div class="col-lg-6"&gt;
                              &lt;strong&gt;FirstName&lt;/strong&gt;
                          &lt;/div&gt;
                          &lt;div class="col-lg-6"&gt;
                              &lt;input type="text" id="txtfirstName" ng-model="addemp.employee.firstname" required class="form-control" /&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class="row"&gt;
                          &lt;div class="col-lg-6"&gt;
                              &lt;strong&gt;LastName&lt;/strong&gt;
                          &lt;/div&gt;
                          &lt;div class="col-lg-6"&gt;
                              &lt;input type="text" id="txtlastName" ng-model="addemp.employee.lastname" required class="form-control" /&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class="row"&gt;
                          &lt;div class="col-lg-6"&gt;
                              &lt;strong&gt;Department&lt;/strong&gt;
                          &lt;/div&gt;
                          &lt;div class="col-lg-6"&gt;
                              &lt;input type="text" id="txtDept" ng-model="addemp.employee.department" required class="form-control" /&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class="row"&gt;
                          &lt;div class="col-lg-6"&gt;
                              &lt;strong&gt;DOB&lt;/strong&gt;
                          &lt;/div&gt;
                          &lt;div class="col-lg-6"&gt;
                              &lt;input type="date" id="DTdob" ng-model="addemp.employee.dateofbirth" required class="form-control" /&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class="row"&gt;
                          &lt;input type="submit" id="btnSubmit" class="btn btn-primary value=" save" /&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
  </code></pre>
  
  <p>which is the best way to implement this. I have tried many ways. please help.</p>
  
  <pre><code>$scope.Add = function (emp,$scope) {
  
          this.EmployeeObject = angular.copy(emp);
          employee.push(this.EmployeeObject);
          $scope.emp = null;
      }
  </code></pre>
  
  <p>which is the best way to implement this. I have tried many ways. please help. </p>