title: How to clear form after post?
body: <p>I'm creating an app using Ionic. After send values of form I want to clear form but I can't do this. </p>
  
  <p>How could I do this ?</p>
  
  <p><strong>form</strong></p>
  
  <pre><code>&lt;form name="Empresa"&gt;
      &lt;div class="list"&gt;
                                  &lt;label class="item item-input" 
                                         ng-class="{'has-errors':Empresa.nomeemp.$invalid, 'no-errors':Empresa.nomeemp.$valid}"&gt;
                                      &lt;input type="text" 
                                             placeholder="Nome" 
                                             name="nomeemp" 
                                             ng-model="Empresa.nome" 
                                             ng-required="true"&gt;
                                  &lt;/label&gt;
                                  &lt;div class="error-container"
                                       ng-show="(Empresa.nomeemp.$dirty || !Empresa.nomeemp.$pristine)"
                                       ng-messages="Empresa.nomeemp.$error"&gt;
                                      &lt;div ng-messages-include="templates/form-errors.html"&gt;&lt;/div&gt;
                                  &lt;/div&gt;                            
      &lt;/div&gt;
  
  &lt;button type="button" class="button button-block button-energized"  
                      ng-disabled="Empresa.$invalid" ng-click="addEmpresa(Empresa);"&gt;Cadastrar&lt;/button&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>controller</strong></p>
  
  <pre><code>$scope.addEmpresa = function(Empresa){      
        var _pathFile = document.getElementById("smallimage").src;
        var _fileName = _pathFile.substr(_pathFile.lastIndexOf('/') + 1);
        if(_fileName === 'no-image.png'){
          $ionicLoading.show({ template: APP_MESSAGES.escolhaImagem, noBackdrop: true, duration: 2000 });
        }else{
            $ionicLoading.show();
            EmpresaAPIService.addEmpresa(Empresa).then(function (data) {
              $ionicLoading.hide();
              var retorno = JSON.parse(data.response);
              if(retorno.status === 0){
                $ionicLoading.show({ template: retorno.msg, noBackdrop: true, duration: 2000 });
              }
              if(retorno.status === 1){ 
                //clear form
                delete Empresa;           
                Empresa.$setPristine();
                Empresa.$setUntouched(); 
  
                $ionicLoading.show({ template: retorno.msg, noBackdrop: true, duration: 2000 });
  
              }
  
            }, function (err) {        
               $ionicLoading.hide();           
            }, function (progress) {
               // PROGRESS HANDLING GOES HERE
            });
  
        }
      }
  </code></pre>