ngModel for <input type="button">

2,046 views
Skip to first unread message

Marcin Warpechowski

unread,
Nov 22, 2012, 6:01:14 AM11/22/12
to ang...@googlegroups.com
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

Ryan Randall

unread,
Nov 26, 2012, 6:28:55 PM11/26/12
to ang...@googlegroups.com
Hi Marcin,

I don't know if you're aware, but this thread has continued here: https://groups.google.com/d/topic/angular/q2i_ur6x9p0/discussion

Cheers,
Ryan

Marcin Warpechowski

unread,
Nov 26, 2012, 6:39:08 PM11/26/12
to ang...@googlegroups.com
Thanks, I was not aware :) Stupid typo
> --
> 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.
>
>
Reply all
Reply to author
Forward
0 new messages