I have this fiddle which shows how I want to have dynamic/data driven columns binding to a data table.
http://jsfiddle.net/paull3876/3mz5L/1/ Now I want to change it so that instead of INPUT as the control displaying the data, it becomes a "user control" setup by a directive, and still two way data bound with ng-init and ng-model. so the INPUT would become something like... <mycontrol data-ng-init="mycol=getcolumnname(cell);" data-ng-model="record[mycol]" ></mycontrol> I've had a go at it here but this is disasterously not working: http://jsfiddle.net/paull3876/rc7uC/1/ If this helps I also have a fiddle which shows how to two way bind a user control (directive) here: http://jsfiddle.net/paull3876/WPWAc/2/ *Full disclosure: I've also dropped this question onto stackoverflow, but no answers yet. I'll update here if a solution appears there, and vice versa :)http://stackoverflow.com/questions/21601154/angularjs-dynamic-rows-and-columns-with-a-two-way-bound-custom-control* -- 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.
