How would this work?
Pete
...from my mobile.
I was asked if ngModel can be used with <input type="button">. Reading through API Reference I started wondering why it is not implemented in Angular? Any risks if I try to implement it on my own?
Please see the below syntax proposal:<input type="button" ng-model="lunch" value="Steak"><input type="button" ng-model="lunch" value="Salad">Thanks--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en-US.
No, it doesn't make any more sense, sorry. Buttons don't hold a value, they initiate an action. The "value" attribute of a button is the text that it displays, nothing more. For something to happen when you click on a button, you have to attach a click event