2017-09-05 96 views
0

我有一个角度4的小问题: 我怎样才能实现插件作为节点模块? (如https://datatables.net/https://gionkunz.github.io/chartist-js/实现插件角度4

+1

欢迎来到StackOverflow。请阅读如何提问 - https://stackoverflow.com/help/how-to-ask –

+0

你可以将它映射到systemjs.config,否则,如果你使用的是ng-cli,请在安装https://之后直接使用它。 medium.com/@kermani/how-to-use-javascript-libraries-in-angular-2-apps-ff274ba601af https://stackoverflow.com/questions/40526476/using-external-library-with-angular-cli – Gary

+0

我一直在使用这个:https://github.com/jvandemo/generator-angular2-library,它很棒;) – Maxime

回答