Wahéb
Wahéb

Reputation: 781

angular material components style is not working

Angular version : 14

OS : Linux Ubuntu

I'm using Angular Material default components like matInput, but it does not look as expected : my component looks like :

enter image description here

but it should looks like this : enter image description here

I used the same code snippet in the documentation but I always get this issue

Upvotes: 0

Views: 282

Answers (1)

Wahéb
Wahéb

Reputation: 781

Solved after importing MatInputModule

in app.module.ts :

import { MatInputModule } from '@angular/material/input';

Upvotes: 1

Related Questions