I have code HTMl as follows here i am trying to get the values from select tag:
<div class="padding">
<div class="item item-divider calm-bg" style="color:#ffffff">
Select Team to Go
</div>
<div class="list" >
<label class="item item-input item-select ">
<div class="input-label">
Select Team
</div>
<select ng-model="teamName" ng-options="f.id as f.name for f in devices">
<option value="" disabled> Select your team </option>
</select>
</label>
</div>
</div>
<div class="clearfix"></div>
<div class="padding">
<div class="item item-divider calm-bg" style="color:#ffffff">
Select Form to Go
</div>
<div class="list">
<label class="item item-input item-select">
<div class="input-label">Select Team</div>
<div ng-if="(!teamName)">
<select>
<option value="" disabled> Select your form</option>
</select>
</div>
<div ng-if="(teamName)">
<select ng-model="FormModel" ng-options="f.id as f.formname for f in forms | filter:{teamid:teamName}">
<option value="" disabled> Select your form </option>
</div>
</label>
</div>
</div>
<div class="clearfix"></div>
<div class="padding">
<button ng-click="showToFillForm(FormModel)" class="button button-calm pull-right">Go!</button>
</div>
I am trying to capture the forms ID using showToFillForm(Formid) but it is not capturing what to do to capture select tag value??
Formiddoes contain any value or not?optionvalue has rendered on html by inspect element?ng-repeatorng-ifsomewhere