How to use bootstrap 4 in angular 2?

后端 未结 11 2579
有刺的猬
有刺的猬 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:33

    I would suggest:

    • Simply including a link to the Bootstrap's CSS file in your index.html page
    • Using ng-bootstrap - a dedicated set of Angular 2 directives for parts where dynamic behaviour is needed. This way you don't need to import / setup jQuery nor care about Bootstrap's JavaScript.

提交回复
热议问题