Working on a project that involves a significant amount of serial true/false data to be displayed in various ways. Developed a directive to pass in the model, table header, and an important aspect - the number of columns.
<serial-checkbox-table title="Title" columns="2" ng-model="items"></serial-checkbox-table>
Struggling to make the columns parameter work as intended. Initially tried generating HTML in the link phase, but encountered difficulties with updating the model passed into the directive.
Check out the current state of the directive on this jsfiddle.
Any suggestions or ideas are greatly appreciated!