-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver-view.component.ts
More file actions
65 lines (54 loc) · 1.38 KB
/
server-view.component.ts
File metadata and controls
65 lines (54 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import {
AfterContentChecked,
AfterContentInit, AfterViewChecked,
AfterViewInit,
Component, ContentChild,
DoCheck, ElementRef,
Input,
OnChanges, OnDestroy,
OnInit,
SimpleChanges
} from '@angular/core';
@Component({
selector: 'ch-server-view',
templateUrl: './server-view.component.html',
styleUrls: ['./server-view.component.css']
})
export class ServerViewComponent implements OnInit, OnChanges,
DoCheck, AfterContentInit, AfterContentChecked, AfterViewInit, AfterViewChecked, OnDestroy {
@Input() element: {
name: string,
type: string,
content: string
};
@ContentChild('contentParagraph', {static: true })contentParagraph: ElementRef;
constructor() {
console.log('Constructor called');
}
ngOnInit() {
console.log('ngOnInit Called');
console.log(this.contentParagraph);
}
ngOnChanges(changes: SimpleChanges): void {
console.log('ngOnChanges called');
console.log(changes);
}
ngDoCheck(): void {
console.log('DoCheck Called');
}
ngAfterContentInit(): void {
console.log('After Content init Called');
}
ngAfterContentChecked(): void {
console.log('After Content Checked Called');
}
ngAfterViewInit(): void {
console.log('After View Init Called');
}
ngOnDestroy(): void {
console.log('Destroy Called');
}
ngAfterViewChecked(): void {
console.log('After View Checked Called');
}
}