In the project I am working on I have a lot of serial true/false data that needs to be displayed in different ways. I have been working on a directive that will allow me to pass in the model, the table header, and heres the tricky part, number of columns.
<serial-checkbox-table title="Title" columns="2" ng-model="items"></serial-checkbox-table>
I cant seem to get the columns parameter to be respected. I built this thing at one point where the html was generated in the link phase but I was having a hard time updating the model that was passed into the directive.
heres a jsfiddle of the current state of the directive.
http://jsfiddle.net/peledies/2tVAe/
Anyone have any ideas?
columnsvariable to do? I updated your jsfiddle to properly output the ending </td></tr> but I'm not sure if this what you want. See here: jsfiddle.net/callado4/2tVAe/3