Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Injectable
- class Service {
- public log = (message: string) => console.log(message)
- }
- @Injectable
- class Module {
- constructor(private service: Service) {
- service.log('модуль, который заинжектил сервис');
- }
- }
- const module = instantiateDependency(Module);
Add Comment
Please, Sign In to add comment