How to import popper.js?

后端 未结 11 2217
广开言路
广开言路 2020-12-25 10:12

It seems to be a lame question, but I cannot to figure it out. How to import popper.js which comes toghether with Bootstrap 4 beta?

I use bower and I\'ve installed B

11条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-25 10:55

    add popper**.js** as dependency instead of popper (only): see the difference in bold.

    yarn add popper.js , instead of yarn add popper

    it makes the difference.

    and include the script according your needs:

    as html or the library access as a dependency in SPA applications like react or angular

提交回复
热议问题