Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

docs(dependency-injection): Clarify how TypeScript generates decorator metadata #1960

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion public/docs/ts/latest/guide/dependency-injection.jade
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,8 @@ block injectable-not-always-needed-in-ts
:marked
Injectors use a class's constructor metadata to determine dependent types as
identified by the constructor's parameter types.
TypeScript generates such metadata for any class with a decorator, and any decorator will do.
TypeScript generates such metadata for any class with a decorator (if
`emitDecoratorMetadata` compiler option is set to true), and any decorator will do.
But of course, it is more meaningful to mark a class using the appropriate
<a href="#{injMetaUrl}">InjectableMetadata</a> #{_decorator}.

Expand Down