This repository was archived by the owner on Dec 4, 2017. It is now read-only.
This repository was archived by the owner on Dec 4, 2017. It is now read-only.
StyleGuide - In TypeScript dependency injection #1163
Closed
Description
To be discussed.
-
Use the
@Injectable()
decorator instead of explicitly declaring the dependencies using@Inject(TOKEN)
.Why?: Using
@Injectable()
the TypeScript compiler will emit the required type metadata, which makes the code using@Inject()
unnecessary verbose and less readable.
Metadata
Metadata
Assignees
Labels
No labels