【问题标题】:How can I use Bootswatch in an Angular project?如何在 Angular 项目中使用 Bootswatch?
【发布时间】:2023-03-05 18:37:01
【问题描述】:

我有一个 Angular 项目,我想在其中使用 Bootswatch。但是我不知道怎么安装,我先尝试安装模块:

npm i bootswatch

然后在 angular.json 文件中我做了以下操作:

 "styles: [
    "bootswatch/dist/lux/bootstrap.min.css",
    "node_modules/animate.css/animate.min.css",
    "src/styles.css". ]

但是对我不起作用,我仍然看到默认的 Bootstrap 主题,我该怎么办?

【问题讨论】:

  • 检查您的 index.html 以找到任何引用引导程序的链接参考?
  • 工作链接:therichpost.com/…

标签: angular bootstrap-4 angular-ui-bootstrap bootswatch


【解决方案1】:

角度。 json 对“服务”和“构建”有两个修改。请检查是否只有一个被修改

【讨论】:

    猜你喜欢
    • 2023-03-11
    • 2018-08-18
    • 1970-01-01
    • 1970-01-01
    • 2014-03-17
    • 1970-01-01
    • 2018-12-20
    • 2016-10-28
    • 1970-01-01
    相关资源
    最近更新 更多