Last active
December 25, 2016 12:08
-
-
Save wKoza/b8836d7fc38ffff9699d5ff3d604a166 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from '@angular/core'; | |
import { LoggerService } from "./logger.service"; | |
@Component({ | |
selector: 'app-component1', | |
template: '<app-component2></app-component2>', | |
providers: [LoggerService] | |
}) | |
export class Component1 implements OnInit { | |
constructor(private logger:LoggerService) { } | |
ngOnInit() { | |
this.logger.debug('component1'); | |
setTimeout(()=>{ | |
console.log('timeOut !'); | |
this.logger.debug('timeout'); | |
},2000); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment