lundi 2 mai 2016

How to create checkbox and validate from array list in angular js

I have a database of choices like (drinks,veg,nonveg) in comma separated I have taken this in array ["drinks", "veg", "nonveg"] and created a 3 checkbox in the user form using these value. If user has selected 2 value from this then it will store in user database. There I have an array of user validation [["drinks", "veg", "nonveg"], ["nonveg"]] enter image description here]1

I want that when I will go for edit that form checkbox should be checked

There is users list how to put in ng-repeat for checked




Aucun commentaire:

Enregistrer un commentaire