lib/common/src/items/expose-template.component.ts
Properties |
|
Methods |
ngAfterViewInit |
ngAfterViewInit()
|
Returns :
void
|
Public itemLabelTemplate |
Type : TemplateRef<any>
|
Decorators :
@ViewChild(TemplateRef, {static: true})
|
import {
Component,
ViewChild,
TemplateRef,
} from '@angular/core'
@Component({
template: ''
})
export class ExposeTemplateComponent{
@ViewChild(TemplateRef, {static: true})
public itemLabelTemplate! : TemplateRef<any>
ngAfterViewInit(){
if(!this.itemLabelTemplate) throw "ItemLabel missing #itemLabelTemplate."
}
}