here's the demo:
var app = angular.module('app', []);
function Ctrl($scope) {
$scope.selection = [];
$scope.categories = [ { "name": "Sport", "id": "50d5ad" } ,
{"name": "General", "id": "678ffr" } ];
}
If i check any checkbox I need to see it's name in the array, but nothing happens, why ?