Page Contents

Home > @loopback/repository > RepositoryComponent

RepositoryComponent interface

This interface describes additional Component properties allowing components to contribute Repository-related artifacts.

Signature:

export interface RepositoryComponent 

Properties

Property Type Description
models Class<Model>[] An optional list of Model classes to bind for dependency injection via app.model() API.
repositories Class<Repository<Model>>[] An optional list of Repository classes to bind for dependency injection via app.repository() API.