AngularJS Checkbox Group

HTML

<div ng-app="MyApp" ng-controller="MyCtrl">
    <h3>Fill out the form.</h3>
    <form name="form1">
        <ul>
            <li ng-repeat="color in colors">
                {{ color }} <input type="checkbox" ng-model="selected[$index]" />
            </li>
            
        </ul>
        {{selected[$index]}}
    </form>
</div>

JavaScript

angular.module('MyApp', [])
    .controller('MyCtrl', function($scope) {
        $scope.colors = ['red', 'blue', 'green', 'orange', 'yellow'];
    });