"type_of_advertisement":["ATM","Banner/Poster","Stalls"]
html code is
input(type='checkbox', value='Mobile/Communication Tower', ng-model='type_of_advertisement')
| Mobile/Communication Tower
label.checkbox-inline
input(type='checkbox', value='Banner/Poster', ng-model='type_of_advertisement')
| Banner/Poster
label.checkbox-inline
input(type='checkbox', value='Hoarding Board', ng-model='type_of_advertisement')
| Hoarding Board
label.checkbox-inline
input(type='checkbox', value='Stalls', ng-model='type_of_advertisement')
| Stalls
label.checkbox-inline
input(type='checkbox', value='Digital Offline Marketing', ng-model='type_of_advertisement')
| Digital Offline Marketing
label.checkbox-inline
input(type='checkbox', value='Area for Product Display', ng-model='type_of_advertisement')
| Area for Product Display
angular code is
type_of_advertisement:[$scope.type_of_advertisement]
The problem occurs is when i hit a one check box all check boxes automatic select. and get the api response like
"type_of_advertisement":["true"]
So what can i code so i get the desired api result.