Guest User

Untitled

a guest
Dec 11th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. @Injectable
  2. class Service {
  3. public log = (message: string) => console.log(message)
  4. }
  5.  
  6. @Injectable
  7. class Module {
  8. constructor(private service: Service) {
  9. service.log('модуль, который заинжектил сервис');
  10. }
  11. }
  12.  
  13. const module = instantiateDependency(Module);
Add Comment
Please, Sign In to add comment