Default value radio button


#1

Hi,

Anyone has a idea why the default (None)value doesn’t work?

<div class="list">
  <ion-radio ng-value="None" ng-model="activeTask.client">None</ion-radio>
  <ion-radio ng-repeat="client in clientList"
               ng-value="client.name"
               ng-model="activeTask.client">
      {{ client.name }}
  </ion-radio>
</div><!-- /.list -->

It shows up in the list but when selecting the option the value does not get added to the model.


#2

Hey,

i think ng-value needs a variable name.

If you want to add a constant string to it, write something like ng-value="‘none’".
In your case activeTask.client would be set to undefined.

Greets, bengtler