【发布时间】:2017-02-22 08:10:16
【问题描述】:
我有一个用 JavaScript 编写的 Angular 应用程序,然后我在这里找到了一个外部模块(用于集成 jquery.dynatree):
https://github.com/hawtio/hawtio/blob/master/hawtio-web/src/main/webapp/app/tree/js/treePlugin.ts
现在我想将此模块包含到我的项目中,但 Angular 在读取/编译此脚本时遇到问题。
我能做些什么来解决这个问题?
PS:我已经使用以下命令安装了 npm-compiler(不确定是否需要):npm install typescript
【问题讨论】:
标签: angularjs typescript import