我正在看The Angular Compiler 4.0 - TOBIAS BOSCH,突然在视频的1:30,有人说AST is transformed into typescript code if we use AOT compilation or javascript code if we use JIT compilation。Compilation process a snapshot of the video。现在我超级困惑到底发生了什么?(.ts)是先由typescript编译器转译成js,然后再由angular编译器执行,还是由angular编译器完成工作,再由typescript编译器执行?我通过了这个What does the angular compiler “compile”? ,但显然我的怀疑还不清楚?有人能帮我解决这个问题吗?
发布于 2018-01-22 13:28:51
(.ts)是先由typescript编译器转译成js,再由angular编译器执行,还是由angular编译器完成工作,再由typescript编译器执行
有了angular html -> TS (to ensure types are correct) - > JS
angular html -> embedded in js and parsed / executed on the fly,
https://stackoverflow.com/questions/48371264
复制相似问题