add installation instruction (#23653)

This commit is contained in:
Yang8547
2019-01-02 16:25:59 -05:00
committed by Jingyi Ding
parent 2512178a7c
commit d7e094e751

View File

@ -9,21 +9,39 @@ AngularJS版本1.x是一个开源的前端JavaScript框架。 AngularJS扩
**安装** **安装**
故宫: 安装node.js
\`\`\`壳 npm安装角度 安装完毕检查node.js的版本运行如下代码
```
HTML: ```shell
node --version
``` ```
HTML 通过Node.js的npm命令安装最新版本的npm/bower
```shell
npm install -g npm
npm install -g bower
``` ```
bower: 通过npm安装:
```shell
npm install angular
```
HTML:
```html
<script src="/node_modules/angular/angular.js"></script>
``` ```
贝壳 凉亭安装角度 通过bower安装:
```shell
bower install angular
``` ```
HTML: HTML:
```html
<script src="/bower_components/angular/angular.js"></script>
``` ```
HTML