Skip to content

Commit

Permalink
fix(repository): switch to reflective form in README
Browse files Browse the repository at this point in the history
  • Loading branch information
shimks committed Mar 13, 2018
1 parent cec3067 commit d065b0a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/repository/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ At the moment, we only have implementations of `Repository` based on LoopBack
3.x `loopback-datasource-juggler` and connectors. The following steps illustrate
how to define repositories and use them with controllers.

### Define legacy data sources and models
### Defining a legacy datasource and a model

The repository module provides APIs to define LoopBack 3.x data sources and
models. For example,
Expand Down Expand Up @@ -57,7 +57,7 @@ export class Note extends Entity {
LoopBack 4. These constructs need to be created programmatically as
illustrated above.

### Define a repository
### Defining a repository

A repository can be created by extending `DefaultCrudRepository` and using
dependency injection to resolve the datasource.
Expand All @@ -78,7 +78,7 @@ export class NoteRepository extends DefaultCrudRepository<
}
```

### Define a controller
### Defining a controller

Controllers serve as handlers for API requests. We declare controllers as
classes with optional dependency injection by decorating constructor parameters
Expand Down Expand Up @@ -113,7 +113,7 @@ export class NoteController {

### Run the controller and repository together

#### Use the Repository Mixin for Application
#### Using the Repository Mixin for Application

A Repository Mixin is available for Application that provides convenience
methods for binding and instantiating a repository class. Bound instances can be
Expand Down

0 comments on commit d065b0a

Please sign in to comment.