Hi I have a problem with bind data from template to controller with angularjs
The first I have object (edited)
$scope.data = {
}
After that I bind it to html
<input ng-model="data.item.test[0].value" />
But I controller I get
{
item: object() {
0: object() {value: "ok"}
}
}
What is need is
item = array(0: object())
How can I do it