G
G
Gadzhimari Kachaev2016-05-30 19:08:52
Angular
Gadzhimari Kachaev, 2016-05-30 19:08:52

How to change text color in Angular Material?

I did not find a clear explanation of how to set colors declaratively in the Angular Material framework , through html. Those. let's say I have a lot of different text on the page, with different colors, and creating a separate class for each is not very good. Therefore, I would like to make it possible to refer to colors in the style
<div md-color='#f00'>Текст</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vovastradamus, 2016-05-31
@vovastradamus

And what, through styles API in general in any way? Angular is not a separate language from javascript

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question