Issue
I'm trying to create a StackBlitz project with angular material, I added the library (@angular/material@12
) in the dependencies but the style is not implemented correctly. What am I missing?
StackBlitz mentioned is here
What I see:
What I expected to see:
Solution
It seems that you also need to import the angular material theme you'll use.
Try adding this to styles.css :
@import "~@angular/material/prebuilt-themes/indigo-pink.css";
Answered By - GuillaumeMMM
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.