i’m using ionic v1,angularjs i want to display the selected value when choosing a radio button and display its value in the controller.
<ion-view>
<div ng-include src="'templates/hearderWithoutBack.html'"></div>
<ion-content>
<div class="content padding has-header">
<div class="responsive-sm">
<h1 class="text-center custom-h1">Payer en utilisant</h1>
<div class="list">
<label class="item item-radio">
<input type="radio" name="formule" value="1" ng-model="changedVal" value="pass" ng-click="getVal()">
<div class="radio-content">
<div class="item-content">
<i><img src="img/edinar.png"></i>
eDINAR
</div>
<i class="radio-icon ion-checkmark"></i>
</div>
</label>
<label class="item item-radio">
<input type="radio" name="formule" value="2" ng-model="changedVal" value="pass" ng-click="getVal()">
<div class="radio-content">
<div class="item-content">
<i><img src="img/universl.png"></i>
<i class="radio-icon ion-checkmark"></i>
Universel
</div>
</div>
</label>
<label class="item item-radio">
<input type="radio" name="formule" value="3" ng-model="changedVal" value="pass" ng-click="getVal()">
<div class="radio-content">
<div class="item-content">
<i><img src="img/electron.png"></i>
DinarPost via Electron
</div>
<i class="radio-icon ion-checkmark"></i>
</div>
</label>
</div>
<div class="footer" style="width: 100%;">
<div class="text-center">
<button class="button custom-button Payer">
Payer
</button>
</div>
</div>
</div>
</div>
</ion-content>
</ion-view>