1
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>
<input type="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>
<input type="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 with radio in 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>
Show reply, there is no way to have doubt, rs
– Diogo Henrique Fragoso de Oliv
Yes, very good indeed!
– Paulo Sérgio Duff