Hi Sander, I'm sorry to bother you, but my requirements have changed and now I'm unsure again. Here's the new plunkr: http://plnkr.co/edit/OMK0QOFTMGK9wUc7HV0j?p=preview
1. Now my row heading and column headings are passed as two separate arrays from the server. The row heading is an array of objects. 2. The server will also return a third *array of checked items*. Only data pairs within this array will render checkboxes that are checked. However, all other checkboxes should still be rendered, but just unchecked. I tried initially by adding a column index to the checked items by finding the indexOf the table headers and adding that to the objects within the array of checked items (and then maybe matching the ng-repeat $index with this column index). But I don't know what to do next. I'm really tempted to switch to full-blown jQuery for this as it's getting a bit complicated for my Angular brain to handle. I'm fine in all other aspects of Angular, but this is really giving me a headache. On Saturday, 1 March 2014 15:06:06 UTC+8, Sander Elias wrote: > > Hi Zhenghao, > > Have a look at this <http://plnkr.co/edit/rQVjdYbku9rzX39Rs3fv?p=preview>! > I have taken your plunk, and removed the unneeded libraries. > Also I introduced underscore, to safe me from typing up some functions to > render your data usable. > I used underscore to transfer your data in an array that is easier to > digest in the template. > > If you have questions, don't hesitate to ask! > > Regards > Sander > > > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
