[AngularJS] Re: ng-checked and ng-selected

2014-01-14 Thread Sander Elias
Hi Mark, ng-checked and ng-selected do serve another purpose then ng-model. Mostly one will use those while building custom checkboxes or selection widgets. The main difference is that those don't have 2 way binding. Mostly those are used for hinting default's and stuff like that. Regards Sande

Re: [AngularJS] Re: ng-checked and ng-selected

2014-01-14 Thread Mark Volkmann
That seems like an uncommon thing to want to do. So my conclusion is that in most cases it is better to use ng-model than ng-checked or ng-selected. On Tue, Jan 14, 2014 at 5:10 AM, Pan Stav wrote: > See that example of ngChecked? > http://code.angularjs.org/1.2.4/docs/api/ng.directive:ngChecke

[AngularJS] Re: ng-checked and ng-selected

2014-01-14 Thread Pan Stav
See that example of ngChecked? http://code.angularjs.org/1.2.4/docs/api/ng.directive:ngChecked If it was ngModel used instead, checking / unchecking the "slave" checkbox would also affect the master checkbox. On Tuesday, January 14, 2014 4:15:55 AM UTC+2, Mark Volkmann wrote: > > Why would one c