Reputation: 3238
I'm uisng Angular Material and now I'd like to change default theme to use the others paletts as follow:
config(["$routeProvider", function ($routeProvider, $mdThemingProvider) {
$mdThemingProvider.theme('default')
.primaryPalette('brown')
.accentPalette('red');
But I'm getting error:
TypeError: Cannot read property 'theme' of undefined
How this could be fixed? P.S. It seemed this issue from version 0.7.0 and still not fixed.
Upvotes: 2
Views: 1105
Reputation: 3238
I missed in config:
config(["$routeProvider", "$mdThemingProvider", function ($routeProvider, $mdThemingProvider) {
Upvotes: 1