Template
<input type="text" data-ng-model="item.title" list="comicstitle">
<datalist id="comicstitle">
<option data-ng-repeat="ttl in titles" value="{{ttl.name}}">
</datalist>
js
$rootScope.titles = [{"id":"1","name":"Alface","value":"1.00"},{"id":"3","name":"Bacon","value":"2.00"},{"id":"4","name":"Queijo Cheedar","value":"2.00"},{"id":"5","name":"Mostarda Dijon","value":"2.00"}];
I need to fetch the item by filling a input
with the array data
<input type="text" ng-model="name">
<input type="text" ng-model="id">
<input type="text" ng-model="value">