Page Contents
Home > @loopback/repository > RepositoryMixinDoc > mountComponentRepository
RepositoryMixinDoc.mountComponentRepository() method
Get an instance of a component and mount all it’s repositories. This function is intended to be used internally by component()
Signature:
mountComponentRepository(component: Class<{}>): void;
Parameters
Parameter | Type | Description |
---|---|---|
component | Class<{}> | The component to mount repositories of |
Returns:
void