为什么 ngx-bootstrap 没有应用到我分类为 bin 的按钮上

Why ngx-bootstrap is not being applied on buttons that I have bin classed

在 stackblitz 中查看我的代码

Btn 它们不适用,尽管我在 stackblitz 代码中添加了 ngx-bootstrap 作为依赖项。 在这里查看我的代码。 https://stackblitz.com/edit/angular-ngx-model-example

实际上,我想学习 ngx-bootstrap 模型和其他基础知识,以便快速检查我直接在 stackblitz 中在线构建代码。

您似乎忘记将 bootstrap 样式包含在 ngx-bootstrap 文档中 states:

您将需要 bootstrap 种样式 (Bootstrap 3)

<!-- index.html -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

或Bootstrap 4

<!--- index.html -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet">

Forked Stackblitz