Skip to content

Commit

Permalink
docs: 调整运行环境说明。
Browse files Browse the repository at this point in the history
  • Loading branch information
huang-xiao-jian committed Jan 3, 2017
1 parent 5ff13e0 commit 2a7af77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
## 运行环境
+ angularjs - 1.6.0+, 支持单向绑定,`life hook`即可
+ echarts - 3.0.0+
+ es6-reflect - 实际使用中自行引入对应`babel-polyfill`即可

## FAQ
+ 实例容器高度缺失,会导致`echarts`绘制错误,并不会直接抛出。如果数据正常,绘制异常,务必检查高度问题。
Expand All @@ -26,7 +27,7 @@ npm install echarts-ng;
```

```js
// 默认加载iife格式,也支持`amd`, `umd`, `commonjs`, `esm`等方式,加载对应文件即可
// 默认加载`umd`格式,也支持`amd`, `iife`, `commonjs`, `esm`等方式,加载对应文件即可
import 'echarts-ng';

angular.module('application', ['echarts-ng']);
Expand Down

0 comments on commit 2a7af77

Please sign in to comment.