Checkbox Mutiple select

by Silambarasan_sundaram

HTML

<div ng-app="myApp" ng-controller="MyCtrl">
	<lable ng-repeat="list in lists">
	<input type="checkbox" name="chk[]" ng-model="lst" value="{{list.vl}}" ng-change="change()">
	{{list.vl}} <br>
	</lable>
</div>

JavaScript

var myApp = angular.module('myApp', []);

myApp.controller('MyCtrl', function($scope){
	$scope.lists = [
		{'vl' : 1},
		{'vl' : 2},
		{'vl' : 3},
		{'vl' : 4},
		{'vl' : 5},
	];

	$scope.lst = [];
	$scope.change = function(){
        $scope.lst.push('2');
		console.log($scope.lst);
	};
});