title: AngularJS validation and field name with square brackets
body: <p>I'm following this tutorial <a href="http://scotch.io/tutorials/javascript/angularjs-form-validation" rel="nofollow">http://scotch.io/tutorials/javascript/angularjs-form-validation</a> but I have form fields with square brackets ( for example company_bundle_task[timeStart][date] - rendered by Symfony2 ) and validation on those fields doesn't work, for example this:</p>
  
  <pre><code>&lt;span class="help-block" ng-show="company_bundle_task.company_bundle_task[timeStart][date].$invalid"&gt;Required&lt;/span&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;span class="help-block" ng-show="company_bundle_task.company_bundle_task[timeStart][date].$error.required"&gt;Required&lt;/span&gt;
  </code></pre>
  
  <p>they are never shown, even though those fields are invalid/empty/etc.</p>