AngularJS - ng-repeat with array checkboxes
<p>here's the demo:</p>

<p><a href="http://jsfiddle.net/0m3qc4s6/1/" rel="nofollow">JSFiddle</a></p>

<pre><code>var app = angular.module('app', []);

    function Ctrl($scope) {

        $scope.selection = [];

        $scope.categories = [ { "name": "Sport", "id": "50d5ad" } ,
        {"name": "General", "id": "678ffr" } ];

    }
</code></pre>

<p>If i check any checkbox I need to see it's name in the array, but nothing happens, why ?</p>