javascript - Change primaryPalette color of Angular MD dynamically -
i have following module config angular md theme.
.config(['$mdthemingprovider', function($mdthemingprovider) { $mdthemingprovider.theme('default').primarypalette(color).accentpalette('orange'); }]);
i want able change primarypalette dynamically using variable color
(i want use themechanger on site). can't seem access config section @ runtime, , not able use $mdthemingprovider anywhere out of config section. ideas how solve this?
https://material.angularjs.org/#/theming/03_configuring_a_theme
Comments
Post a Comment