kintela
kintela

Reputation: 1323

Problems adding angular material in stackblitz

I have this sample: https://stackblitz.com/edit/partehoras?file=src/styles.css

Where I have installed angular material

enter image description here

I have created this material.module where I export all the modules needed

enter image description here

Then I import this module in app.module

enter image description here

In styles.scss i have imported one

@import '@angular/material/prebuilt-themes/indigo-pink.css';

But when I try this in my template

<mat-card>
......
<mat-card>

I get this error

enter image description here

Any idea, please?

Thanks

Upvotes: 0

Views: 205

Answers (1)

Mr. Stash
Mr. Stash

Reputation: 3140

ListadoEmpleadosComponent is missing from the list of declarations in app module and you also need to import HttpClientModule

declarations: [ AppComponent, ListadoEmpleadosComponent ]

Upvotes: 1

Related Questions