title: Trouble with Angular Validation
body: <p>I'm new to Angular and have trouble debugging my use of form validations. Namely I want to disable sumbit button if the form is invalid. My problem is that it stays invalid even if I've inserted apparently valid input. This goes so far as to be even invalid for empty form:</p>
  
  <p>This is my template (original code is commented out):</p>
  
  <pre><code>&lt;div&gt;
      &lt;div class="row"&gt;
          &lt;div class="col-xs-6"&gt;
              &lt;a href ng-click="companiesCtrl.newEdit()" class="btn btn-primary"&gt;Uus asutus&lt;/a&gt;
              &lt;table class="table"&gt;
                  &lt;tbody&gt;
                  &lt;tr ng-repeat="company in companiesCtrl.list"&gt;
                      &lt;td&gt;&lt;a href ng-click="companiesCtrl.load(company)"&gt;{{company.name}}&lt;/a&gt;&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;/tbody&gt;
              &lt;/table&gt;
          &lt;/div&gt;
          &lt;div class="col-xs-6"&gt;
              &lt;form id="editForm"&gt;
              &lt;!--&lt;form ng-show="companiesCtrl.showEdit()" ng-submit="companiesCtrl.save()" name="editForm"&gt;--&gt;
                  &lt;!--&lt;h4&gt;Asutuse detailid&lt;/h4&gt;--&gt;
                  &lt;!--&lt;a ng-show="companiesCtrl.edit.id != 0" class="btn btn-primary" ng-href="../{{companiesCtrl.edit.id}}/product/list"&gt;Asutuse vaatele&lt;/a&gt;--&gt;
                  &lt;!--&lt;fieldset class="form-group"&gt;--&gt;
                      &lt;!--&lt;input  ng-model="companiesCtrl.edit.id"/&gt;--&gt;
                  &lt;!--&lt;/fieldset&gt;--&gt;
                  &lt;!--&lt;fieldset class="form-group"&gt;--&gt;
                      &lt;!--&lt;input placeholder="Asutuse nimi" title="Asutuse nimi" ng-model="companiesCtrl.edit.name" ng-required="true"/&gt;--&gt;
                  &lt;!--&lt;/fieldset&gt;--&gt;
                  &lt;!--&lt;fieldset class="form-group"&gt;--&gt;
                      &lt;!--&lt;input type="submit" class="btn btn-success" ng-disabled="editForm.$invalid" value="Salvesta" /&gt;--&gt;
                  &lt;!--&lt;/fieldset&gt;--&gt;
              &lt;/form&gt;
              &lt;span&gt;{{editForm.$error}}&lt;/span&gt;
              &lt;span&gt;{{editForm.$invalid}}&lt;/span&gt;
              &lt;span&gt;{{editForm.$valid}}&lt;/span&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>and this is the result from the "span"-s:</p>
  
  <pre><code>{"required":[{}]} true false
  </code></pre>
  
  <p>My question is, as I'm new to Angular, how to debug this, or what are the additional factors  that can affect form "valid" status.</p>