How to concat checkbox checked values?


#1

Hello sir,
I have used for checkbox.
$scope.burgerList = [ {id:1, title:‘Buger 1’},{id:2, title:‘Buger 2’}, {id:3, title:‘Buger 3’} ]

On checked bellow function i have used.
$scope.itemsChecked=function(item){

}

–In HTML
<-div ng-repeat="item in burgerList " >
<-ion-checkbox ng-click=“itemsChecked(item)” >
{{item.title}}

        <-/ion-checkbox>  
            
            -</div>

I want to concat id like [1][2] on checked checkbox. On uncheeked remove id. Only checkbox value will concat. If i unchecked checked value then remove concat id.

Please help me …