我有一些代码想在 stackoverflow 上提问。代码是用 AngularJS 和 Typescript 编写的,并且对 $location.hash 进行操作和观察。我现在在 github 上有代码 https://github.com/svdoever/AngularJS-bookviewer .是否可以在 http://plnkr.co 处获得此代码,最好没有编译的 Typescript 文件? ?
我在 https://twitter.com/filearts/status/290961349092208642 阅读应该在 http://plunkr.co 上支持 Typescript .
编辑:
Bassarat 将 gh-pages 分支添加到 git 存储库的解决方案完成了这项工作。查看对他的回答的评论。
最佳答案
plunker 不支持它。但我倾向于使用 http://typescript.io/当我需要第三方库支持时(例如 angularjs)。否则我就坚持使用 TypeScript Playground http://www.typescriptlang.org/Playground/
更新
您可以使用 https://github.com/basarat/typescript-script 在任何您喜欢的地方使用 TypeScript (plunker 样本:https://github.com/basarat/typescript-script#plunker)
也就是说,许多 playground 现在原生支持 TypeScript 包括 plunkr:https://github.com/ggoodman/plunker-run-plugin/blob/master/README.md (只需将 "use typescript";
放在文件顶部并添加一个 tsconfig.json
文件 🌹
关于javascript - 可以使用 AngularJS 和 Typescript 进行 Plunker 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21555834/