[英]Importing Angular Material in Stackblitz
I have imported material(7.2.1) in my stackblitz link, 我在stackblitz链接中导入了物料(7.2.1) ,
Still I am unable see the exact UI of material
我还是看不到材料的确切UI
I have tried to figure out, but no result. 我试图弄清楚,但没有结果。 Here the stackblitz which i have created.
在这里,我创造了堆叠闪电战 。
Angular Material lets you know what the issue is in the console: Angular Material让您知道控制台中存在的问题:
Could not find Angular Material core theme.
找不到Angular Material核心主题。 Most Material components may not work as expected.
大多数材料组件可能无法正常工作。 For more info refer to the theming guide: https://material.angular.io/guide/theming
有关更多信息,请参阅主题指南: https : //material.angular.io/guide/theming
You are not importing a core theme from Angular Material. 您不是从Angular Material导入核心主题。 Add this line to your styles.css:
将此行添加到您的styles.css中:
@import '@angular/material/prebuilt-themes/deeppurple-amber.css';
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.