Improving nested ng-repeat + directive performance
I have a horizontal month calendar that shows the activities for employees per day. Currently it's using a table with the following hierarchy/flow 1) Controller: Generate an array containing every day for that month based on the select month / year. A $scope.$watchCollection updates the array whenever year or month changes. As the code explains what I do better: <table class="table table-bordered table-condensed" ng-controller="PlanningOverviewController"> <tr> <th><input type="text" ng-model="employeefilter"/></th> <th colspan="7" ng-repeat="week in weeks"> {{week | weekheader}} </th> </tr>