This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
Update documentation for $mdColors #8473
Labels
P3: important
Important issues that really should be fixed when possible.
Milestone
Looks like $mdColors.applyThemeColors now needs 3 arguments (including a scope for interpolated values). The documentation still shows only 2.
Also, the only way I can get it to work is to pass the colorExpression as a string, not as an expression. Is all this expected? If so, can you make sure to update the docs before 1.1 officially hits?
Also, was there any thought of having the scope as the last parameter and making it optional?
This does not work anymore.
$mdColors.applyThemeColors(angular.element('#idHere'), {color: 'warn'});
This seems to work now.
$mdColors.applyThemeColors(angular.element('#idHere'), $scope, "{color: 'warn'}");
The text was updated successfully, but these errors were encountered: