My goal is to transmit form data using hidden input like this:
<input type="hidden" required ng-model="formHolder.template[position].itemKey[itr]" ng-value="[[ formItem ]]" />
The value of formItem
can be any string. Issues arise when the strings contain spaces.
Error angular.js:13708 Error: [$parse:syntax] Syntax Error: Token 'Line' is an unexpected token at column 9 of the expression [Subject Line] starting at [Line].
Is there a specific type that ng-value
is expecting?