Home
Using Smart NgRX
Demo Walkthrough
API
@smarttools/smart-ngrx / Function

getServices

Generic types:P C

retrieves child and parent actionServices from the registry

Presentation

function getServices(childDefinition: ChildDefinition<P, C>): {
  service: ActionService;
  parentService: ActionService;
};

Returns

{ service: ActionService; parentService: ActionService; } -

the actionServices for the child and the parent

Parameters

NameTypeDescription
childDefinition
ChildDefinition<P, C>

the ChildDefinition to retrieve the services for