When displaying a series of values from an array, the data items are not being bound to the model properly, as in:
$scope.model = {
values: [
"Value 1",
"Value 2,
...
]
}
If the above is displayed in a series of input fields, changes to the content are not reflected in the model. However, binding the above using code like the following does maintain binding to the model:
<div ng-repeat="value in model.values">
<input type="text" ng-model="model.values[$index]" />
</div>
However the issue with this approach is that the text field loses focus on each keyup. A demo is here:
http://jsfiddle.net/donovanh/GSx76/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4