Skip to main content

scope

@quik/services


@quik/services / ServicesStore / scope

Function: scope()

scope<Service>(service, serviceScope?): Service

Defined in: services/src/store.ts:195

Retrieve a service instance bound to a scope.

Type Parameters​

Service​

Service extends QService

Parameters​

service​

string | Constructor<Service>

The service to obtain.

serviceScope?​

IQServiceScope

The scope applied to the service clone.

Returns​

Service