简体   繁体   中英

Import bootstrap or other html theme to my angular 4 app

I want to import the bootstrap theme 3 or other html theme with their dependencies
of javascript files in my angular 4 application. But I can't find anywhere how to import the javascript files. If finally import them,is safe to use bootstrap 3 or other html theme,without the possibility to break my app?? I prefer not use the ng2-bootstrap. Thanks.

If you dont want to use ng2-bootstrap the easiest way is to import bootstrap from your index.html file like this

<script src="https://cdnjs.cloudflare.com/ajax/libs/ng2-bootstrap/x.x.x/ng2-bootstrap.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">

and just use the normal bootstrap classes in your html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM