Browse Source

chore: updates README.md

e22m4u 2 years ago
parent
commit
d487cb8b78
1 changed files with 3 additions and 0 deletions
  1. 3 0
      README.md

+ 3 - 0
README.md

@@ -61,6 +61,7 @@ import {Service} from '@e22m4u/service';
 
 
 class Foo extends Service {
 class Foo extends Service {
   method() {
   method() {
+    // доступ к сервису Bar
     const bar = this.getService(Bar);
     const bar = this.getService(Bar);
     // ...
     // ...
   }
   }
@@ -68,6 +69,7 @@ class Foo extends Service {
 
 
 class Bar extends Service {
 class Bar extends Service {
   method() {
   method() {
+    // доступ к сервису Foo
     const foo = this.getService(Foo);
     const foo = this.getService(Foo);
     // ...
     // ...
   }
   }
@@ -75,6 +77,7 @@ class Bar extends Service {
 
 
 class App extends Service {
 class App extends Service {
   method() {
   method() {
+    // доступ к сервисам
     const foo = this.getService(Foo);
     const foo = this.getService(Foo);
     const bar = this.getService(Bar);
     const bar = this.getService(Bar);
     // ...
     // ...