Skip to content
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
@mgechev

Description

@mgechev

To be discussed.

// cc @johnpapa @wardbell


  • 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions