I can't make Ionic 3 + Material angular work together.
I've followed every stepped, installing angular/material
, angular/cdk
, angular/animation
and bring BrowserAnimationsModule
to app.module.ts
. I've imported MatCardModule
from '@angular/material'
and added it to imports
array. And I finally tried to use it with <mat-card>Simple card</mat-card>
.
Error: Uncaught (in promise): Error: Template parse errors: 'mat-card' is not a known element: 1. If 'mat-card' is an Angular component, then verify that it is part of this module. 2. If 'mat-card' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. (" `
How can I make it work together?