How to set text color in Angular-Material?

前端 未结 9 1547
被撕碎了的回忆
被撕碎了的回忆 2020-12-30 19:20

I want to set one word in a sentence to have md-primary color, and another word to have the accent color. I assumed something like this:

Hel
9条回答
  •  长情又很酷
    2020-12-30 19:35

    Angular Material's docs explicitly enumerate list of components, which you able to differentiate with md-theme attribute:

    md-button
    md-checkbox
    md-progress-circular
    md-progress-linear
    md-radio-button
    md-slider
    md-switch
    md-tabs
    md-text-float
    md-toolbar

    From Angular Material documentation, under Theming / Declarative Syntax.

    So I think the short answer is: you can't do it.

提交回复
热议问题