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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -