i got a code which i understand but a small area is not clear. so help me to understand please.
<div ng-controller="MainCtrl">
<label ng-repeat="(color,enabled) in colors">
<input type="checkbox" ng-model="colors[color]" /> {{color}}
</label>
<p>colors: {{colors}}</p>
<script>
var app = angular.module('plunker', []);
app.controller('MainCtrl', function($scope){
$scope.colors = {Blue: true, Orange: true};
});
</script>
http://plnkr.co/edit/U4VD61?p=preview
see this line ng-model="colors[color]" how this line automatically set checkbox checked or unchecked state because in code we do not mention checked = true or false then how angular automatically extract true or false from model and set it in checkbox.......this is not clear. please guide me.