---
lang: en
title: 'API docs: repository.repositorymixindoc.mountcomponentrepository'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.repository.repositorymixindoc.mountcomponentrepository.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [RepositoryMixinDoc](./repository.repositorymixindoc.md) &gt; [mountComponentRepository](./repository.repositorymixindoc.mountcomponentrepository.md)

## 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()

<b>Signature:</b>

```typescript
mountComponentRepository(component: Class<{}>): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  component | <code>Class&lt;{}&gt;</code> | The component to mount repositories of |

<b>Returns:</b>

`void`


