Function: Service()

October 4, 2024 · View on GitHub

DIOD v3.0.0Docs


Function: Service()

Service(): ClassDecorator

Decorator for injectable classes. Every registered service must be decorated because without decorators Typescript won't emit constructor metadata.

Returns

ClassDecorator