如何定制角度材料md-chips颜色

时间:2016-02-18 11:26:41

标签: angularjs angular-material

我想在不使用css样式的情况下随机自定义md-chip颜色。 md-chip指令中是否有任何属性?

<md-chips placeholder="Add more tags here"
                         secondary-placeholder="Enter tags here"  ng-model="contact.contact.tags.attrVal"  md-on-add="contact.createTag(contact.contact)" md-on-remove="contact.removeTag(contact.contact)"></md-chips>

2 个答案:

答案 0 :(得分:0)

你可以使用ng-style。即

ng-style={background-color:'red'}

答案 1 :(得分:0)

请参阅Angular Material&#39; github上的Issue 8692。它似乎是目前正在处理的一个已知问题。

相关问题