I am currently facing an issue with making my CSS values dynamic. The code I have tried is not functioning as expected.
<style>
.panel-primary {
background-color:{{myColorPanel}}
}
</style>
I came across a similar query on How to Dynamically create a CSS class using AngularJS
I am unsure about the mistakes in my code that are causing it not to work.
If anyone has an alternative solution to this problem, please share.
I simply want to customize the colors of Bootstrap panels without having to use ng-class
or ng-style
individually for each panel since there are many.
If you have any ideas, please let me know.
Full Code
<!DOCTYPE html>
<html data-ng-app="Aptus">
<head>
...
... (Code continues)
...
</body>
</html>