Currently I am working on an AngularJS project and I have a requirement to use a dynamic color defined by the user in CSS. Is there a way to implement this dynamic color in my CSS using AngularJS, vanilla JS, or SASS?
For example...
Internal CSS in HTML Page:
<style>
.button, .link {
background:{{ UserDefinedColor }};
}
</style>
AngularJS Controller:
app.controller('myController', function($scope) {
$scope.UserDefinedColor = '#f00'};
});