ionic4项目中常用模块(http、translate、echart)
默认cordova插件不需要多说,一般在创建ionic4项目的时候就会安装好,一般在config.xml中的底部会看到,如下:
<plugin name="cordova-plugin-whitelist" spec="1.3.3" />
<plugin name="cordova-plugin-statusbar" spec="2.4.2" />
<plugin name="cordova-plugin-device" spec="2.0.2" />
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
<plugin name="cordova-plugin-ionic-webview" spec="^4.0.0" />
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
下面说几个其他的:
1、如果需要使用http请求调用数据接口(java、C#、php等语言开发的接口),那么需要安装@angular/http
npm install @angular/http
2、如果需要实现国际化,则需要安装@ngx-translate
npm install @ngx-translate/core --save
npm install @ngx-translate/http-loader --save
3、如果需要使用到echart图表则
npm install echarts --save