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
. Here is what I have done:
component.html:
<md-chips ng-model="keywords" readonly="false" placeholder="Enter a keyword"></md-chips>
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:
For Material2 the components are md-chip and md-chip-list .
<md-chip-list>
<md-chip>Papadum</md-chip>
<md-chip>Naan</md-chip>
<md-chip>Dal</md-chip>
</md-chip-list>
The docs can be found here .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.