I want to make an application with dynamic theming. For example, there is a button, you click it and color of some elements changes by some rule. First idea - do it with
<style type="text/css" ng-bind="ownStyle"></style>
and init ownStyle in $rootScope:
$rootScope.ownStyle = "* {color: green }";
But it seems awful + it's too hard to write css rules as string. Is there a more elegancy way to do it?
.ownStyle .myThing). Then, to turn it on, add that class to a containing element.