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

python 3 IndexError: list index out of range -

android - How to save instance state of selected radiobutton on menu -

IF statement in MySQL trigger -