Did you try using a binding? (type)="q.type" On Sat, Aug 13, 2016, 15:50 p. stephen w <[email protected]> wrote:
> I can't dynamically set the input type, like so... > <input type="q.type" > [(ngModel)]="ng2Form[q.id +'_'+ a.id]" > name="q.id" > value="a.score"/> > > Per thforis Plunker <https://plnkr.co/edit/GU3BXain0E581pTXijrN?p=preview> > only statically setting it to *checkbox* works. Is this by design, > possibly due to limitations of HTML Forms, or is this known issue with > solutions soon to come? > > -- > 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 https://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- Lucas Lacroix Computer Scientist Advanced Technology Division, MEDITECH <http://ehr.meditech.com/> 781-774-2293 -- 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 https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
