Browse Source

chore: updates README.md

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

+ 3 - 0
README.md

@@ -102,6 +102,9 @@ const app = new App();
 ```js
 ```js
 // вызов с аргументами конструктора
 // вызов с аргументами конструктора
 const foo = this.getService(Foo, 'arg1', 'arg2');
 const foo = this.getService(Foo, 'arg1', 'arg2');
+
+// проверка существования экзепляра
+console.log(this.hasService(Foo)); // true
 ```
 ```
 
 
 ## Тесты
 ## Тесты