Angular开发准备
生活随笔
收集整理的這篇文章主要介紹了
Angular开发准备
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
cmd,進(jìn)入項(xiàng)目文件下
1、安裝jquery
npm install jquery --save。
?--save ?安裝的同時(shí),將信息寫入package.json中
2、安裝bootstrap npm installbootstrap--save。
3、在.angular-cli.json中添加 jquery和bootstrap的引用 在styles節(jié)點(diǎn)和scripts節(jié)點(diǎn)下加入。
"styles": [ "styles.css", "../node_modules/bootstrapdist/css/bootstrap.css" ], "scripts": [ "../node_modules/jquery/dist/jquery.js", "../node_modules/bootstrap/dist/js/bootstrap.js" ],
在項(xiàng)目中使用還需要:
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節(jié)點(diǎn)和scripts節(jié)點(diǎn)下加入。
"styles": [ "styles.css", "../node_modules/bootstrapdist/css/bootstrap.css" ], "scripts": [ "../node_modules/jquery/dist/jquery.js", "../node_modules/bootstrap/dist/js/bootstrap.js" ],
在項(xiàng)目中使用還需要:
4、安裝jquery的類型定義文件(*.d.ts) npm install @types/jquery --save-dev。
5、安裝bootstrap的類型定義文件(*.d.ts) npm install @types/bootstrap --save-dev。
-------------
更多的Java,Angular,Android,大數(shù)據(jù),J2EE,Python,數(shù)據(jù)庫(kù),Linux,Java架構(gòu)師,教程,視頻請(qǐng)?jiān)L問(wèn):
http://www.cnblogs.com/zengmiaogen/p/7083694.html
總結(jié)
以上是生活随笔為你收集整理的Angular开发准备的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Mybatis源码阅读(四):核心接口4
- 下一篇: Maven高级之archetype(原型