[英]Material component is not a known element - angular2
我已經安裝了@angular/material 並從'@angular/material' 導入了{MaterialModule}。
但是我仍然無法使用任何 md-tags,因為它顯示“不是已知元素”錯誤。 請就此提出建議。
您需要確保從app.component.ts
材料中引用您想要的組件,例如
import { MdDialog, MdDialogRef, MdSnackBar } from '@angular/material';
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.