what is diff in @Injectable() and @Inject
问题 I am working on angular2 I have created service and inject those service using @Inject in component. I am confuse with the use of @Injectable() in service itself and what diff it makes. 回答1: @Inject() is a manual mechanism for letting Angular 2 know that a parameter needs to be injected @Injectable() lets Angular 2 know that a class can be used with the dependency injector. @Injectable() is not strictly required if the class has other Angular 2 decorators on it. What is important is that any