There is an array
$scope.colors = [{
'id':'1',
'name':'red'
},{
'id':'2',
'name':'green'
},{
'id':'3',
'name':'blue'
}];
How to generate a set of checkboxes and post them to the backend in the format clors:[{id:1}...]
淡淡烟草味2017-05-15 16:55:24
I took a look. You can take a look at a demo I wrote. It may be helpful to you.