@H_4040@前序:
@H404_0@现在angular2已经除了集成的angular-cli,建议大家可以基于这个来快速开发ng2的项目,不用自己再搭建环境;
@H_404_0@相关内容请前往:<a rel="external nofollow" href="https://angular.cn/docs/ts/latest/cli-quickstart.html">https://angular.cn/docs/ts/latest/cli-quickstart.html
@H_4040@
正文:
@H404_0@以图片轮播组件carousel为例:
@H_404_0@首先安装好ng2-bootstrap,bootstrap
<div class="jb51code">
<pre class="brush:js;">
npm install ng2-bootstrap bootstrap --save