search

Home  >  Q&A  >  body text

angular.js - angular 4 引入第三方类库的方式和2不一样吗?

按照angular2的方法引入了bootstrap,启动没报错,但是样式就是出不来,看控制台,<style>标签里没东西。.angular-cli.json配置已配置。

"styles": [
        "../node_modules/bootstrap/dist/css/bootstrap.css"
      ],
大家讲道理大家讲道理2744 days ago577

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-05-15 17:15:18

    It shouldn’t be that the package has not been downloaded npm i --save bootstrap?

    reply
    0
  • Cancelreply