How do I bind to list of checkbox values with AngularJS?

前端 未结 29 2662
天涯浪人
天涯浪人 2020-11-22 05:20

I have a few checkboxes:





        
29条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-22 06:21

    I think the easiest workaround would be to use 'select' with 'multiple' specified:

    
    

    Otherwise, I think you'll have to process the list to construct the list (by $watch()ing the model array bind with checkboxes).

提交回复
热议问题