Angular: Empty Fiddle

http://angularjs.org/

HTML

<div ng-controller="Controller">
    Projects <input ng-model="projects"></input>
    <hr/>
    <div ng-repeat="row in rows">
        <div ng-repeat="project in row">
            Projects {{project}}
        </div>
        <hr/>
    </div>
</div>

CoffeeScript

# Break up an array into even sized chunks.
chunk = (a,s)->
    if a.length == 0
        []
    else               
        ( a[i..i+s-1] for i in [0..a.length - 1 ] by s)
    
@Controller = ($scope)->
    $scope.projects = "ABCDEF"
    
    $scope.$watch "projects", ->      
       $scope.rows = chunk $scope.projects.split(""), 3
    
angular.bootstrap(document, []);