Angular开发准备

cmd,进入项目文件
1、安装jquery
npm install jquery --save。
--save 安装的同时,将信息写入package.json中

2、安装bootstrap
npm install bootstrap --save。

3、在.angular-cli.json中添加 jquery和bootstrap的引用
在styles节点和scripts节点下加入。

"styles" : [
"styles.css" ,
"../node_modules/bootstrapdist/css/bootstrap.css"
],122)">"scripts" "../node_modules/jquery/dist/jquery.js" "../node_modules/bootstrap/dist/js/bootstrap.js"



在项目中使用还需要:

4、安装jquery的类型定义文件(*.d.ts)
npm install @types/jquery --save-dev。

5、安装bootstrap的类型定义文件(*.d.ts)
npm install @types/bootstrap --save-dev。

相关文章

ANGULAR.JS:NG-SELECTANDNG-OPTIONSPS:其实看英文文档比看中...
AngularJS中使用Chart.js制折线图与饼图实例  Chart.js 是...
IE浏览器兼容性后续前言 继续尝试解决IE浏览器兼容性问题,...
Angular实现下拉菜单多选写这篇文章时,引用文章地址如下:h...
在AngularJS应用中集成科大讯飞语音输入功能前言 根据项目...
Angular数据更新不及时问题探讨前言 在修复控制角标正确变...