Hi, I am trying to iterate the properties of an object and create a new row 
with a select for each, but keep getting an error.  Can someone tell me 
what i am missing/doing wrong.  thanks

Here is the error:
Error: [$parse:syntax] Syntax Error: Token 'value' is unexpected, expecting 
[:] at column 3 of the expression [{{value}}] starting at [value}}]

$scope.data = 
angular.fromJson("{\"key1\":\"STRING\",\"key2\":\"STRING\",\"key3\":\"STRING\",\"key4\":\"STRING\"}");

<tr ng-repeat="(key,value) in data track by $index" class="row">
<td>
<select ng-model="{{value}}">
    <option value="STRING">STRING</option>
    <option value="DATE">DATE</option>
    <option value="INTEGER">INTEGER</option>
    <option value="DECIMAL">DECIMAL</option>
    <option value="BOOLEAN">BOOLEAN</option>
</select>
</td>
</tr>


-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to