首页 > 其他 > 详细

添加material ui库

时间:2021-01-05 19:07:08      阅读:35      评论:0      收藏:0      [点我收藏+]
ng add @angular/material

  自定义预构建主题

? Choose a prebuilt theme name, or "custom" for a custom theme: Custom
? Set up global Angular Material typography styles? Yes
? Set up browser animations for Angular Material? Yes

  创建mat.module

ng g module mat

  写个例子

import { NgModule } from @angular/core;
import { CommonModule } from @angular/common;
import { MatButtonModule } from @angular/material/button;


@NgModule({
  declarations: [],
  imports: [
    CommonModule,
    MatButtonModule 
  ],
  exports:[
    MatButtonModule
  ]
})
export class MatModule { }

 

添加material ui库

原文:https://www.cnblogs.com/wskxy/p/14236840.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!