所以我想用以下项目试试Chat.js。
https://github.com/mraible/jhipster4-demo
所以我研究并发现了以下http://valor-software.com/ng2-charts/
所以我安装了ng-2图表。 ng2-charts需要chart.js所以我也安装了chart.js,我可以在jhipster4-demo项目的node_modules下看到它。
ng2图表说
Embedding Chart.js in application is mandatory!
<script src="node_modules/chart.js/src/chart.js"></script>
如何在jhipster4-demo项目中执行上述强制步骤?由于我不是网络包专家,不知道如何做到这一点。
答案 0 :(得分:2)
将您的lib导入src/main/webapp/app/vendor.ts
:
import 'chart.js/src/chart.js';
这是&#34;管理依赖关系&#34; README.md文件的一部分也是在Matt Raible的演示应用程序中生成的。