How to use bootstrap 4 in angular 2?

后端 未结 11 2532
有刺的猬
有刺的猬 2020-11-30 18:54

I\'m building an angular 2 app written in typescript. It would use the bootstrap 4 framework in combination with some custom theming, is this possible?

The \"ng2-boo

11条回答
  •  自闭症患者
    2020-11-30 19:22

    You can use npm for installing the latest bootstrap version. This can be done using the command:

    npm install bootstrap@4.0.0-beta
    

    And after this you might have to import bootstrap.css into your main css file. Which will be styles.css, if you are using angular-cli.

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

    If you want to know more please use the link: http://technobytz.com/install-bootstrap-4-using-npm.html

提交回复
热议问题