Angular模块没有导出成员'ButtonFillMode'
创始人
2024-10-28 15:01:17
0

这个问题通常出现在使用 ngx-buton 模块时,它需要依赖@angular/material 模块。需要确保安装了 @angular/material 模块,并将其导入到模块中。以下是一个示例:

app.module.ts:

import { NgModule } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { AppComponent } from './app.component';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    MatButtonModule  // 导入 MatButton 模块
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

在组件文件中使用时,可以这样引入:

import { ButtonFillMode } from '@angular/material/button';

// ...
export class MyComponent implements OnInit {
  fillMode = ButtonFillMode.Solid;
  // ...
}

相关内容

热门资讯

透视中牌率"德州透视... 透视中牌率"德州透视插件"详细辅助专业教程(原来有挂)1、不需要AI权限,帮助你快速的进行德州透视插...
透视透视"模拟器打开... 透视透视"模拟器打开hhpoker"详细辅助2025新版(果然是真的有挂)1、不需要AI权限,帮助你...
透视教程"wepok... 透视教程"wepoker可以开透视吗"详细辅助AI教程(一直是真的有挂);人气非常高,ai更新快且高...
透视辅助"菠萝德州透... 透视辅助"菠萝德州透视脚本"详细辅助德州论坛(从前真的有挂);大神普及一款德州ai内幕,确定了菠萝德...
透视辅助"aapok... 透视辅助"aapoker透视脚本入口"详细辅助2025新版总结(本来真的有挂);亲真的是有正版授权,...
透视总结"hhpok... 1、透视总结"hhpoker德州透视"详细辅助曝光教程(往昔有挂)。2、hhpoker德州透视透视辅...
透视规律"竞技联盟透... 1、透视规律"竞技联盟透视"详细辅助攻略教程(最初真的是有挂)(UU poker、竞技联盟透视、xp...
透视透视挂"如何下载... 透视透视挂"如何下载德普之星辅助软件"详细辅助必赢教程(一向有挂)科技教程也叫必备教程,这是一款功能...
透视脚本"聚星ai辅... 透视脚本"聚星ai辅助工具下载"详细辅助科技教程(真是真的有挂)1、许多玩家不知道聚星ai辅助工具下...
透视透视"hhpok... 透视透视"hhpoker德州透视"详细辅助总结教程(从来真的有挂)1、玩家可以在hhpoker德州透...