你可以将它映射到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
欢迎来到StackOverflow。请阅读如何提问 - https://stackoverflow.com/help/how-to-ask –
你可以将它映射到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
我一直在使用这个:https://github.com/jvandemo/generator-angular2-library,它很棒;) – Maxime