将Bootstrap 4与Angular 4结合使用 [英] Using Bootstrap 4 with Angular 4

查看:97
本文介绍了将Bootstrap 4与Angular 4结合使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Angular 4中安装Bootstrap 4之后,出现错误: [脚本加载程序]错误:引导工具提示需要Tether( http://tether.io/). 我尝试安装系绳,并通过了系绳CDN,但它没有帮助.

After installing Bootstrap 4, in Angular 4, I am getting an error : [Script Loader] Error: Bootstrap tooltips require Tether (http://tether.io/). I tried installing tether, passing tether CDN but it dint help.

推荐答案

在您的angular-cli.json文件中添加对tether.min.css的引用

Add the reference to tether.min.css in your angular-cli.json file

styles": [
    "styles.css",
    "../node_modules/tether/dist/css/tether.min.css",
    "../node_modules/bootstrap/dist/css/bootstrap.min.css"
  ],
  "scripts": [
    "../node_modules/jquery/dist/jquery.min.js",
    "../node_modules/tether/dist/js/tether.min.js",
    "../node_modules/bootstrap/dist/js/bootstrap.min.js"
  ],

这篇关于将Bootstrap 4与Angular 4结合使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆