vendredi 9 décembre 2016

how to get both checkbox value and radio value in angularjs

hi this is MY PLUNKER

there is a condition in my json is it"s min value of the ingredients is equal to one means it will change to radio and if it"s greater than one means will change to checkbox ..

to show it as radio

 ng-if="get_ingredientTypeName_values.minVal == 1"

<input id="_" name="" type="radio">

to show it as checkbox

ng-if="get_ingredientTypeName_values.minVal == null">
  <input id="_" name="" type="checkbox">

how to get both values and save to an array ?

Aucun commentaire:

Enregistrer un commentaire