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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -