Guest User

Untitled

a guest
Apr 24th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. class JokeComponent {
  2. @Input('joke') data: Joke;
  3.  
  4. constructor() {
  5. console.log(`new - data is ${this.data}`);
  6. }
  7.  
  8. ngOnChanges() {
  9. console.log(`ngOnChanges - data is ${this.data}`);
  10. }
  11.  
  12. ngOnInit() {
  13. console.log(`ngOnInit - data is ${this.data}`);
  14. }
  15.  
  16. ngDoCheck() {
  17. console.log("ngDoCheck")
  18. }
  19.  
  20. ngAfterContentInit() {
  21. console.log("ngAfterContentInit");
  22. }
  23.  
  24. ngAfterContentChecked() {
  25. console.log("ngAfterContentChecked");
  26. }
  27.  
  28. ngAfterViewInit() {
  29. console.log("ngAfterViewInit");
  30. }
  31.  
  32. ngAfterViewChecked() {
  33. console.log("ngAfterViewChecked");
  34. }
  35.  
  36. ngOnDestroy() {
  37. console.log("ngOnDestroy");
  38. }
  39. }
Add Comment
Please, Sign In to add comment