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