JSFiddle - React, Tailwind, and code Playground
by hekke
HTML
<!doctype html>
<html xmlns:ng="http://angularjs.org">
<script src="http://docs-next.angularjs.org/angular-0.10.5.min.js" ng:autobind></script>
<script>
function Ctrl() {
this.flags = [false,false,false];
}
</script>
<body>
<div ng:controller="Ctrl">
<pre>{{flags}}</pre>
<hr>
<h1>This construct doesn't work</h1>
<span ng:repeat="flag in flags">
<input type="checkbox" ng:model="flags[$index]">
</span>
<hr>
<h1>This construct works</h1>
<span ng:repeat="i in [0,1,2]">
<input type="checkbox" ng:model="flags[i]">
</span>
</div>
</body>
</html>