AngularJS validation and field name with square brackets AngularJS validation and field name with square brackets symfony symfony

AngularJS validation and field name with square brackets


You have to escape your name in quotes, since a.example is equivalent of a['example'] you can write:

<span class="help-block" ng-show="company_bundle_task['company_bundle_task[timeStart][date]'].$error.required">Required</span>


Mati, You should try and use a function rather than evaluating such a long expression... call a simple function which is attached to your scope and controller and evaluate this expression correctly in it....

I usually, do not try to write the expression there but functions...

Regards