Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

How to concat checkbox checked values?

$
0
0

@enamul95 wrote:

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 ...

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>