angularjs - Angular-Formly: How to put an input- sm class in field -
how set class .input-sm in field using angular-formly?
ex.:
<input class="form-control input-sm" name="test" type="text" placeholder=".input-sm">
here go. use ngmodelelattrs
property:
{ key: 'yourkey', type: 'input', ngmodelelattrs: { class: 'form-control input-sm' // <-- it! }, templateoptions: { label: 'input' } }
Comments
Post a Comment