Set the ion-radio as required

Asked

Viewed 99 times

2

I am mounting a dynamic form using ionic2, but multiple choice components do not accept the property required how would I do that on Ionic? The component I’m trying to put property required is the ion-radio I have tried with the ion-checkbox.

Example of the code used.

<ion-list radio-group>
<ion-item *ngFor="‪#‎option‬ of pergunta.lista">
<ion-label>{{option.label}}</ion-label>
<ion-radio value="{{option.label}}" required></ion-radio>
</ion-item>
</ion-template>
</ion-list>

What might be going on?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.