[英]Angular2 material 'md-chips' is not a known element
I'm working on an Angular2 application using @angular/material 2.0.0-beta.2 and I am trying to use Chips , but I get 'md-chips' is not a known element
. 我正在使用@ angular / material 2.0.0-beta.2在Angular2应用程序上工作,并且尝试使用Chips ,但是得到的
'md-chips' is not a known element
。 Here is what I have done: 这是我所做的:
component.html: component.html:
<md-chips ng-model="keywords" readonly="false" placeholder="Enter a keyword"></md-chips>
module.ts module.ts
import { MaterialModule } from '@angular/material';
import 'hammerjs';
...
@NgModule({
imports: [
productRouting,
SharedModule,
Select2Module,
MaterialModule.forRoot()
],
...
if I use some other material component like 如果我使用其他一些物质成分,例如
<md-toolbar color="primary"><span>GameViewer</span></md-toolbar>
I'll have no problem, therefor I don't think I have a problem with importing the material module. 我不会有任何问题,因此,我认为导入物料模块没有问题。
PS I already read these: PS我已经读过这些:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.