1.

What are the difference between @injectable() vs. @inject() in angular 2?

Answer»
 @INJECTABLE@Inject
1.Aims to SET metadata of dependencies to be injected into constructorTells Angular what PARAMETER must be injected
2.Without it, no DEPENDENCY can be injectedOnly NEEDED to inject primitives


Discussion

No Comment Found