import { User } from './user.service' ; import { Injectable } from '../../src/index' ; @ Injectable ( ) export class Logger { private messages : string [ ] = [ ] ; static print ( message ) { console . log ( `log_service: ${ message }\n` ) ; } constructor ( private user ) { } append ( message ) { this . messages . push ( message ) ; } debug ( ) { this . messages . forEach ( msg => Logger . print ( msg ) ) ; } world ( ) { return 'world' ; } }