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

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

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