|
@@ -128,7 +128,7 @@ import {Service} from '@e22m4u/js-service';
|
|
|
// the Foo service
|
|
// the Foo service
|
|
|
class Foo extends Service {
|
|
class Foo extends Service {
|
|
|
method() {
|
|
method() {
|
|
|
- // access to the Bar service
|
|
|
|
|
|
|
+ // access to the Bar
|
|
|
const bar = this.getService(Bar);
|
|
const bar = this.getService(Bar);
|
|
|
// ...
|
|
// ...
|
|
|
}
|
|
}
|
|
@@ -137,7 +137,7 @@ class Foo extends Service {
|
|
|
// the Bar service
|
|
// the Bar service
|
|
|
class Bar extends Service {
|
|
class Bar extends Service {
|
|
|
method() {
|
|
method() {
|
|
|
- // access to the Foo service
|
|
|
|
|
|
|
+ // access to the Foo
|
|
|
const foo = this.getService(Foo);
|
|
const foo = this.getService(Foo);
|
|
|
// ...
|
|
// ...
|
|
|
}
|
|
}
|