2015-09-30 63 views

回答

2

Here you go。只需使用ngModelElAttrs屬性:

{ 
    key: 'yourKey', 
    type: 'input', 
    ngModelElAttrs: { 
    class: 'form-control input-sm' // <-- this is it! 
    }, 
    templateOptions: { 
    label: 'Input' 
    } 
} 
+0

完美!謝謝! = d – Matheus

相關問題