A injection token to hold and provide a singleton service.
Name | Type | Description |
---|---|---|
token | InjectionToken<T> | The injection token. Its default value is an empty array. |
provider | <R extends T = T>(klass: Type<R>) => ExistingProvider | A helper function to provide the service class to the token. |