title: need ng-show to validate inputs, submitt and not show the message again after submitting
body: <p>I don't know how to configure correctly ng-show.</p>
  
  <p>What is happening is this:</p>
  
  <ol>
  <li>I have 4 inputs, ok. Those are being validated.</li>
  <li>I submit, ok.</li>
  <li>After save it in my DB I clean the fields but the message of the required fields are being showed without being submitted. I just need to show if the user submits and has no text.</li>
  </ol>
  
  <p>Here goes my html:</p>
  
  <pre><code>&lt;div class="grid-form"&gt;
                  &lt;div class="grid-form1"&gt;
                      &lt;h3 id="forms-example" class=""&gt;Cadastro de Peças&lt;/h3&gt;
  
                      &lt;form name="formCadastroPecas" id="formCadastroPecas" role="form" novalidate&gt;
  
                          &lt;div class="form-group"&gt;
                                  &lt;label for="labelNome"&gt;Nome da Peça:&lt;/label&gt;
                                  &lt;br&gt;
                                      &lt;select size="3" style="width: 300px" multiple="" class="form-control1" ng-model="nome" ng-options="foo as foo for foo in names"&gt;
                                      &lt;/select&gt;
  
                          &lt;/div&gt;
  
                          &lt;div class="form-group"&gt;
                              &lt;label for="fabricante"&gt;Fabricante:&lt;/label&gt; &lt;input
                                  type="text" class="form-control" id="fabricante" ng-model="fabricante" name="fabricante" required&gt;
                              &lt;span style="color: red"
                                ng-show="submitted &amp;&amp; formCadastroPecas.fabricante.$error.required" &gt;Campo
                                Fabricante Obrigatório.&lt;/span&gt;
                          &lt;/div&gt;
                          &lt;div class="form-group"&gt;
                              &lt;label for="exampleInputPassword1"&gt;Modelo:&lt;/label&gt; &lt;input
                                  type="text" class="form-control" id="modelo" ng-model="modelo" name="modelo" required&gt;
                              &lt;span style="color: red"
                                ng-show="submitted &amp;&amp; formCadastroPecas.modelo.$error.required" &gt;Campo
                                Modelo Obrigatório.&lt;/span&gt;
                          &lt;/div&gt;
  
                          &lt;div class="form-group"&gt;
                              &lt;label for="exampleInputPassword1"&gt;Preço de Compra:&lt;/label&gt; &lt;input
                                  type="text" class="form-control" id="precoCompra" ng-model="precoCompra" name="precoCompra" required&gt;
                              &lt;span style="color: red"
                                ng-show="submitted &amp;&amp; formCadastroPecas.precoCompra.$error.required" &gt;Campo
                                Peço de Compra Obrigatório.&lt;/span&gt;
                          &lt;/div&gt;
  
                          &lt;div class="form-group"&gt;
                              &lt;label for="exampleInputPassword1"&gt;Preço de Venda:&lt;/label&gt; &lt;input
                                  type="text" class="form-control" id="precoVenda" ng-model="precoVenda" name="precoVenda" required&gt;
                                  &lt;span style="color: red"
                                ng-show="submitted &amp;&amp; formCadastroPecas.precoVenda.$error.required" &gt;Campo
                                Preço de Venda Obrigatório.&lt;/span&gt;
                          &lt;/div&gt;
                          &lt;button type="submit" class="btn btn-lg btn-danger" ng-disabled="form.$invalid" ng-click="submitForm(formCadastroPecas)"&gt;Cadastrar&lt;/button&gt;
                          &lt;br&gt;
                          &lt;span align="left" id="retornoValidacao" style="color: red"&gt;{{retorno.data.message}}&lt;/span&gt;
                          &lt;div class="alert alert-success" ng-show="show" role="alert"&gt; 
                                  &lt;center&gt; 
                                      &lt;strong&gt;OK!&lt;/strong&gt; Peça cadastrada com sucesso. 
                                  &lt;/center&gt; 
                          &lt;/div&gt; 
                      &lt;/form&gt;
  </code></pre>