Angular开发准备
生活随笔
收集整理的這篇文章主要介紹了
Angular开发准备
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
cmd,進入項目文件下
1、安裝jquery
npm install jquery --save。
?--save ?安裝的同時,將信息寫入package.json中
2、安裝bootstrap npm installbootstrap--save。
3、在.angular-cli.json中添加 jquery和bootstrap的引用 在styles節點和scripts節點下加入。
"styles": [ "styles.css", "../node_modules/bootstrapdist/css/bootstrap.css" ], "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。
2、安裝bootstrap npm installbootstrap--save。
3、在.angular-cli.json中添加 jquery和bootstrap的引用 在styles節點和scripts節點下加入。
"styles": [ "styles.css", "../node_modules/bootstrapdist/css/bootstrap.css" ], "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。
-------------
更多的Java,Angular,Android,大數據,J2EE,Python,數據庫,Linux,Java架構師,教程,視頻請訪問:
http://www.cnblogs.com/zengmiaogen/p/7083694.html
總結
以上是生活随笔為你收集整理的Angular开发准备的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Mybatis源码阅读(四):核心接口4
- 下一篇: 这些Windows 10隐藏秘技,你知道