I have a simple JavaScript object that looks like this:
$scope.obj = { "'Architect'": ["asdf","d","e","y"]};
I would like to show the values โโof 'Architect' in the selection box. However, single quotes throw me away when trying to do ng-repeat .
<select> <option ng-repeat="row in obj['Architect']" value="{{row}}">{{row}}</option> </select>
This does not fill the selection field, it just shows an empty selection field. I assume that it interprets single quotes as a string literal, but even if I add single quotes and avoid them, it still doesn't work properly. Am I missing something?
Here is a plunker example:
source share