apaas.dev
4 November 2022
First install Angular Material:
npm install --save @angular/material @angular/cdk @angular/animations
In src/styles.css
add:
@import "~@angular/material/prebuilt-themes/indigo-pink.css";
This comes in handy especially when working with Stackblitz. The latest Angular CLI will version will ask you if you want to add it when doing ng add @angular/material
.
- 登录 发表评论