Skip to content

Commit

Permalink
fix(example-greeter-extension): use @config for configuration injec…
Browse files Browse the repository at this point in the history
…tion in README
  • Loading branch information
raymondfeng committed Jul 9, 2019
1 parent b764835 commit ebc6136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/greeter-extension/README.md
Expand Up @@ -169,7 +169,7 @@ knowing much about one another.

```ts
import {Greeter, asGreeter} from '../types';
import {bind, inject} from '@loopback/context';
import {bind, config} from '@loopback/context';

/**
* Options for the Chinese greeter
Expand All @@ -190,7 +190,7 @@ export class ChineseGreeter implements Greeter {
/**
* Inject the configuration for ChineseGreeter
*/
@inject('greeters.ChineseGreeter.options', {optional: true})
@config()
private options: ChineseGreeterOptions = {nameFirst: true},
) {}

Expand Down

0 comments on commit ebc6136

Please sign in to comment.