I think you are correct Angular.js Training <http://javascripttrainingcourses.com/#!Angular-Training>
On Thursday, September 20, 2012 at 9:43:18 AM UTC+5:30, floydsoft wrote: > > Hi folks, > > Current ng-checked is an one-way binding, and ng-model is a two-way > binding, so we can assign ng-checked another model to effect the input, but > input not effect another model. > > This design can implement master-slave relationship to form group check, > but ng-checked only effects input, it does't syncs ng-model, it's weird. > > Consider http://jsfiddle.net/nAjXd/ , slave's model will not change even > input is checked by ng-checked. > > Since ng-model is two-way binding, input should honor this contract, so > after ng-checked checks on input, it should checks ng-model too. > > It may look likeļ¼ > > "master's model" (by ng-checked) --> input <--> "slave's model(ng-model)" > > Current version will break when ng-checked checks input, ng-model will not > be sync. > > I've opened a PR https://github.com/angular/angular.js/pull/1057 , but > Angular team didn't think it's make sense. > > Do I make any mistake or other better solutions on this issue? > -- 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.
