In my Angular2 project I install lastest material plugin from https://material.angular.io/guide/getting-started. Next I add @import '~@angular/material/prebuilt-themes/deeppurple-amber.css';
to my css file for my component. But in my console Angular shows this error:
material.es5.js:148 Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming`
The material components not working.
Whats wrong?
Best Answer
Please insert below code into your styles.css which is located in your src folder.
You can select any css under the prebuilt-themes folder.