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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -