Browse Source

chore: updates README.md

e22m4u 2 months ago
parent
commit
112e289f54
1 changed files with 5 additions and 0 deletions
  1. 5 0
      README.md

+ 5 - 0
README.md

@@ -123,6 +123,11 @@ class App extends Service { // <= наследование Service
 // создание экземпляра из запуск приложения
 const app = new App();
 app.start();
+
+// альтернативный способ (явное определение контейнера)
+//   const sc = new ServiceContainer();
+//   const app = sc.get(App);
+//   app.start();
 ```
 
 ## Назначение