I want to change the select to toggle style in ionic 1. The problem is I do not know how to let the toggle to select Yes or No. Two things I need
The toggle yes and no selection must work the same as select which currently working
I need to show the 'Yes' and 'No' on the toggle. The preset of the toggle is 'No'
abc.html
<div class="row">
<div class="col col-33">Baby</div>
<div class="col col-66">
<select ng-model="searchQuery.stockBaby" ng-init="searchQuery.stockBaby = '%'">
<option value="%">Yes</option>
<option value="S">No</option>
</select>
</div>
</div>
<ion-toggle ion-toggle-text ng-model="searchQuery.stockBaby" ng-init="searchQuery.stockBaby = '%'">
<div class="col col-33">Baby</div>
<div class="col col-66">
</ion-toggle>
Current view of select and toggle. Select is working but toggle not
. It does not work anyway.
Also, I need the word in the toggle