• 개요
@angular/core

Service

데코레이터

Decorator that marks a class as a service and makes it automatically available in the dependency injection system.

API

@Service();
@Service(options: { autoProvided: false });
@Service(options: { autoProvided?: true; factory: () => T });
@Service(options?: { autoProvided?: true });
상세 내용으로 이동