【问题标题】:How to use Bootstrap css Library in Angular 2?如何在 Angular 2 中使用 Bootstrap css 库?
【发布时间】:2017-04-09 19:07:54
【问题描述】:

我知道如果我想在我的 angular2 应用程序中包含引导程序,最简单的方法是将 css/js 包含到我的标题中...

如果我有 2 条路线 /bootstrap 和 /foundation ,每条路线都有不同的 css 框架...

主要的 index.html 是一个具有特定标题的文件...我可以做些什么来拥有多个?

【问题讨论】:

标签: twitter-bootstrap angular


【解决方案1】:

首先下载引导程序。

npm install bootstrap —save

然后在style.css中

@import '~bootstrap/dist/css/bootstrap.css';

【讨论】:

    猜你喜欢
    • 2017-09-22
    • 2016-11-06
    • 2017-05-29
    • 1970-01-01
    • 2017-04-13
    • 2019-01-01
    • 1970-01-01
    • 2018-02-07
    • 2015-08-14
    相关资源
    最近更新 更多