Skip to content

Commit

Permalink
docs(context): update code in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
virkt25 committed Mar 27, 2018
1 parent 5a79526 commit 2e4c8bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/context/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ ctx.bind('HelloController').toClass(HelloController);

async function hello() {
// Get an instance of HelloController
const helloController: HelloController = await ctx.get('HelloController');
const helloController = await ctx.get<HelloController>('HelloController');
// helloController now has the `greeting` property injected with `Hello`
console.log(helloController.greet('John')); // => Hello, John
}
Expand Down

0 comments on commit 2e4c8bc

Please sign in to comment.