Hi Vishal, While this would work, I would not do it like this. The input in the DOM is not being used, and only the style is there to reflect the state of the underlying variable. Something like this would be more semantic:
<input type=checkbox #cb [checked]="flagStatus ==='Yes'" (change)="flagStatus = cb.checked ? 'No': 'Yes'"> Gives you a pretty clear view on what is going on, and doesn't need a whole lot of imperative code in the class. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" 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 https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
