5

Looking at Angular2 projects, I see some are using: npm reflect-metadata

and others are using : core-js/es7/reflect

I know both are implementing the ES7 proposed Decorator and reflect API

But what is the difference between the two? Are they just copy/paste ? I assume they are equivalent

Ghassan Karwchan
  • 3,355
  • 7
  • 37
  • 65

1 Answers1

3

core-js/es7/reflect: The native JavaScript support for a metadata reflection API.

npm reflect-metadata: The TypeScript support for the prototype of the ES7 Reflection API.

Hope this help!

Ha Hoang
  • 1,644
  • 12
  • 14
  • Can you answer the question directly in your SO answer? i.e. the first link is broken and it is still unclear to me, if they are the same or not. – TmTron Mar 08 '21 at 11:00