[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/core/Service [Back]  [Original]

Service Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/core

Service

decorator

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

Introduction to Services and DICreating and using servicesDefining dependency providers

On this page

    arrow_upward_alt Back to the top

    API

    @Service();
    @Service(options: { autoProvided: false });
    @Service(options: { autoProvided?: true; factory: () => T });
    @Service(options?: { autoProvided?: true });
    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page