[英]Angular2 using either npm reflect-metadata or core-js/es7/reflect
Looking at Angular2 projects, I see some are using: npm reflect-metadata 看看Angular2项目,我看到一些正在使用:npm reflect-metadata
and others are using : core-js/es7/reflect 和其他人正在使用:core-js / es7 / reflect
I know both are implementing the ES7 proposed Decorator and reflect API 我知道两者都在实现ES7提议的Decorator并反映API
But what is the difference between the two? 但这两者有什么区别? Are they just copy/paste ?
它们只是复制/粘贴吗? I assume they are equivalent
我认为它们是等价的
core-js/es7/reflect:
The native JavaScript support for a metadata reflection API . core-js/es7/reflect:
对元数据反射API的本机JavaScript支持。
npm reflect-metadata:
The TypeScript support for the prototype of the ES7 Reflection API . npm reflect-metadata:
对ES7 Reflection API原型的 TypeScript支持。
Hope this help! 希望这有帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.