blob: 9f168f02ef67155409a4571eb5447666e23fa609 (
plain)
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
|
import { Component, Input, OnInit, TemplateRef, ViewChild, OnDestroy } from '@angular/core';
import { Subject } from 'rxjs';
@Component({
selector: 'app-descriptions-item',
template: `
<ng-template>
<ng-content></ng-content>
</ng-template>
`,
})
export class DescriptionItemComponent implements OnDestroy {
@ViewChild(TemplateRef) content: TemplateRef<void>;
@Input() nzSpan: number = 1;
@Input() nzTitle: string = '';
readonly inputChange$ = new Subject<void>();
ngOnChanges(): void {
this.inputChange$.next();
}
ngOnDestroy(): void {
this.inputChange$.complete();
}
}
|