In AngularJS, I can successfully bind text inputs to elements of arrays:
<input type="text" ng-model="foo[2]" />
Is this allowed, or does it just work by accident?
When I try to bind select elements or checkbox input to array elements they fail to work - i.e. the select element does not change the displayed, or bound, value on selection and the checkbox does not display a tick when clicked.
Am I missing something here?
Update: It works in JSFiddle: http://jsfiddle.net/azFzc/