在我的Angular2项目中,我从
https://material.angular.io/guide/getting-started开始安装最新的材质插件。接下来我添加@import’~@angular/material/prebuilt-themes/deeppurple-amber.css’;到我的组件的css文件。但是在我的控制台中Angular显示了这个错误:
原文链接:/angularjs/143842.htmlmaterial.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: 07001`
材料组件不起作用。
怎么了?