Imagine a traditional application in AngularJS
<!DOCTYPE html>
<html ng-app>
<head>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.5/angular.min.js"></script><title></title></head><body><inputtype="input" ng-model="resultado">
Resultado: {{resultado}}<br>
Resultado {{escolha}}
</body>
</html>
Now, imagine that I want to make dataBind contained in the ng-value of a checkbox
<!DOCTYPE html>
<html ng-app>
<head>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.5/angular.min.js"></script><title></title></head><body><inputtype="checkbox" ng-model="escolha" ng-value="google">google<BR>
<input type="checkbox" ng-model="escolha" ng-value="yahoo">yahoo<BR>
<input type="checkbox" ng-model="escolha" ng-value="microsoft">microsoft<BR>
Resultado {{escolha}}
</body>
</html>
I would also like to know if it is possible to do radio with the IONIC standard
<ion-radio ng-model="escolha" ng-value="'A'">google.com</ion-radio>
<ion-radio ng-model="escolha" ng-value="'B'">yahoo.com</ion-radio>
<ion-radio ng-model="escolha" ng-value="'C'">microsoft.com</ion-radio>