I'm new to AngularJS I would like to string together the contents of several input text boxes. I have this fiddle:
<script>
function MyController($scope){
$scope.fields = {
test : [{value: "aaa"}, {value:"bbb"}, {value:"ccc"}]
}
};
</script>
<div ng-app ng-controller="MyController">
<ul>
<li ng-repeat="field in fields.test">
<input type="text" ng-model="field.value">
</li>
</ul>
<pre>{{fields}}</pre>
</div>
I would like the value to be: aaabbbccc (also how can I adjust the code in for scenario where there could be x input boxes) Thanks