Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ng2如何导入一个自己写的ts模块(只有ts代码,不是angular module) #270

Open
yuhenmeili opened this issue Nov 8, 2017 · 0 comments

Comments

@yuhenmeili
Copy link

这个ts模块就是一个普通的工具包,放在一个叫GXCommon的module里面,有好几个ts文件,然后我把它丢到app目录下的一个新建的libs文件夹里面。。。。问题来了,我在app文件夹下面新建的ts文件,引用这个GXCommon,类似这样"import Model = GXCommon.Model"的引用,能够编译通过,但是在chrome里面运行的时候,提示Uncaught ReferenceError: GXCommon is not defined.。。。。。。。。。。。。求助求助

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant