【Angular 】设置Angular 材质主题
apaas.dev
4 November 2022
What is theming?
Angular Material's theming system lets you customize color and typography styles for components in your application. The theming system is based on Google's Material Design specification.
【Angular 】修复在Angular Material中找不到AngularMaterial核心主题错误
apaas.dev
4 November 2022
Could not find Angular Material core theme
Last updated on 1 min read
I have been working with Angular Material for the past one year.
Recently I have created a new project with Angular Material.
Strangely, when I try to run the application nothing has been loaded in the webpage and in console log, I got a warning saying
【Angular 】将靛蓝粉色主题添加到我们的Angular 材料项目中
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
.