import { Component, Input, ViewChild, TemplateRef } from '@angular/core';
@Component({
selector: 'desc-list-item',
template: `
{{_term}}
`
})
export class DescListItemComponent {
// region fields
_term = '';
_termTpl: TemplateRef;
@Input()
set term(value: string | TemplateRef) {
if (value instanceof TemplateRef)
this._termTpl = value;
else
this._term = value;
}
// endregion
@ViewChild('tpl') tpl: TemplateRef;
}