I have a question...
If you're interested in conditional styling, the best approach is to utilize either ng-class
or ng-style
.
However...
For instance, let's say I'm an admin and I would like to customize the color of my application using a custom color from a colorpicker
. How can I adjust some code in the CSS?
Imagine I have this line in the style.css
file:
body{
background: #ffffff;
}
(where all tags like a, h1, etc., implement certain colors)
In the controller, I want to change this #ffffff
to #000000
.
What is the optimal method for adjusting this color in the CSS without having to use ng-class
or ng-style
on every tag within each controller?