Skip to content
This repository was archived by the owner on Feb 2, 2018. It is now read-only.

Commit b028aba

Browse files
committed
fixup! Change readme example name
1 parent b1f867e commit b028aba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/mixins/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class MyApp extends MyMixinClass(MyMixinClass2(Application)) {
2020
}
2121
```
2222

23-
2423
## Getting Started
2524

2625
For hello-extensions we write a simple Mixin that allows the `Application` class to bind a `Logger` class from ApplicationOptions, Components, or `.logger()` method that is mixed in. `Logger` instances are bound to the key `loggers.${Logger.name}`. Once a Logger has been bound, the user can retrieve it by using [Dependency Injection](http://loopback.io/doc/en/lb4/Dependency-injection.html) and the key for the `Logger`.
@@ -127,11 +126,11 @@ class LoggingApplication extends LoggerMixin(Application) {
127126
}
128127
129128
// Binding a Logger provided by a component
130-
class MyComponent implements Component{
129+
class LoggingComponent implements Component{
131130
loggers: [ColorLogger];
132131
}
133132
134133
const app = new LoggingApplication({
135-
components: [MyComponent] // Logger from MyComponent will be bound to loggers.ColorLogger
134+
components: [LoggingComponent] // Logger from MyComponent will be bound to loggers.ColorLogger
136135
});
137136
```

0 commit comments

Comments
 (0)