新增第三方庫
在 angular-cli.json 中,你可以更改應用程式配置。
如果你想新增 ng2-bootstrap 例如:
- 
npm install ng2-bootstrap --save或yarn add ng2-bootstrap - 
在 angular-cli.json 中,只需在 node-modules 上新增 bootstrap 的路徑。
"scripts": [ "../node_modules/jquery/dist/jquery.js", "../node_modules/bootstrap/dist/js/bootstrap.js" ]