I have a simple input like this:
<input type="text" ng-model="myModel" />
and an array in my controller like this:
myApp.controller('MyCtrl', function($scope) {
$scope.arr = [
{str: ''},
{str: ''}
];
});
How to bind my inputs model to the str attribute of every single object in my arr?
Thanks for your help.
ng-controller> ... >ng-repeatinputwhich controls content of any object in the array