viewchildren elementref angular 8 code example Example: @viewchild elementref @ViewChild('ID', {static: true}) NAME: ElementRef | undefined;