Angular 2 md-chips color attribute material not working
When I try to create my md tokens with a color attribute, nothing happens. According to the tutorial https://material.angular.io/components/component/chips this should work. All my other styling elements are no problem.
<md-chip-list>
<md-chip color="primary"> Chicken </md-chip>
<md-chip color="warn"> Table </md-chip>
<md-chip color="accent"> Tree </md-chip>
<md-chip> Eight </md-chip>
</md-chip-list>
Does anyone know how to fix this?
Thanks in advance!
+3
source to share
3 answers
As per the plunkr example , the chips are colored only when the attribute is selected
set to true
:
<md-chip color="accent" selected="true">Chicken</md-chip>
+6
source to share