Peter, I don't think you need the `for` and `id`, do you? Which saves from having to generate unique ids across the app.
http://plnkr.co/edit/3mxczjlzjvwNIPbCQ0kz?p=preview -Aleck On Fri, Mar 7, 2014 at 3:32 PM, Peter Bengtsson <[email protected]> wrote: > Could you do something like: > <td> > <label for="checkbox1" style="display:block"> > <input type="checkbox" id="checkbox1" ng-model="checkbox1"> > </label> > </td> > > > On Friday, March 7, 2014 2:49:10 PM UTC-8, Aleck Landgraf wrote: >> >> I think I know the answer, which is to somehow prevent the click handler >> when clicking the actual checkbox, but that seems tough. >> This would be useful for allowing people to click a table's cell or row >> to select/unselect a checkbox. >> >> http://plnkr.co/edit/pvtvOST4EYDDM1qwvWic?p=preview >> >> Any thoughts? >> >> Thanks, >> Aleck >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "AngularJS" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/angular/sK7jXdA3LN8/unsubscribe. > To unsubscribe from this group and all its topics, 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/d/optout. > -- 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/d/optout.
