0
How can I make an ion-radio as required, or disable the button if nothing is selected?
<ion-radio ng-model="escolhido.categoria_comida_cod_categoria_com" ng-value="'{{item.categoria_comida_cod_categoria_com}}'" ng-required="true">{{item.categoria_comida_nome}}</ion-radio>
Follow with the button:
<ion-list ng-repeat="item in categoriass | filter:q as results" ng-init="$last ? fireEvent() : null">
<ion-radio ng-model="escolhido.categoria_comida_cod_categoria_com" ng-value="'{{item.categoria_comida_cod_categoria_com}}'" ng-required="true">{{item.categoria_comida_nome}}</ion-radio>
</ion-list>
<div class="spacer" style="width: 300px; height: 40px;"></div>
<button class="button button-full button-assertive" ng-click="SelecionaCategoria(escolhido)">
Continuar (Passo 1 de 2)
</button>