I am making an application by ionic and working along with Laravel server. The problem is, I have a list of items store in my server. In ionic application I will request for information of items from server to create a form. I have my code here,
<div ng-repeat="itemGroup in mydata">
<div class="item item-divider nn-card-header">
{{itemGroup.name}}
</div>
<ion-list>
<ion-item ng-repeat="item in itemGroup.items">
<h3>{{ item.name }}</h3>
<div class="item range range-positive">
broken
<input type="range" id="{{ item.idgB }}" min="0" max="{{ item.max }}" ng-model="item.idgB" ng-init="item.idgB=0">
{{ item.idgB }}
</div>
<div class="item range range-positive">
missing
<input type="range" id="{{ item.idgM }}" name="volume" min="0" max="{{ item.max }}" ng-model="item.idgM" ng-init="item.idgM=0">
{{ item.idgM }}
</div>
</ion-item>
</ion-list>
</div>
that mydata is this json data:
[{
"name":"name",
"items":[{
"id":1,
"name":"itemA",
"max":2,
"idgM":"m.3.1.1",
"idgB":"b.3.1.1"
}]
}]
My question is, I don't know how to get value from the input because I can't use jquery to find element. I have an idea that i will send the list of all unique IDs of items from the server to application. But I do not know how to get ng-model data by using string variable.