【发布时间】:2018-08-28 09:42:20
【问题描述】:
我试图在我的 Angular 模块中使用引导程序中的主按钮。但这似乎不起作用。
这是我到目前为止所做的。
npm install ngx-bootstrap --save
添加了引导模块和导入。
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
import { TooltipModule } from 'ngx-bootstrap/tooltip';
import { ModalModule } from 'ngx-bootstrap/modal';
imports: [
BrowserModule,
BsDropdownModule.forRoot(),
TooltipModule.forRoot(),
ModalModule.forRoot(),...]
exports: [BsDropdownModule, TooltipModule, ModalModule]
现在在模块中,我将此代码用于按钮:
<button type="submit" class="btn btn-primary">Submit</button>
但该按钮仍然是标准的 html 按钮。不是蓝色的提交按钮。导入引导程序时我是否忘记了任何步骤。在 node_modules 结构中,我可以在其中找到带有必要 .js 和 .css 文件的引导程序。
感谢您的帮助。
【问题讨论】:
标签: html angular button sass bootstrapping