Whenever I try to assign a value to
$scope.formData.field_happy.und.0.value
, I encounter the following error.
An unexpected SyntaxError occurs: Unexpected number
However, if I bind it to a model, everything works fine. I can't seem to figure out what I'm doing wrong.
<input type="checkbox" ng-model="formData.field_staff_interaction.und.0.value" >
This is specifically for posting data to a Drupal services API endpoint, and this formatted structure is necessary for proper functionality.