How should I configure the new Angular 8 view child? @ViewChild('searchText', {read: ElementRef, static: false}) public searchTextInput: ElementRef; vs @ViewChild('searchText', {read: ElementRef, static: true}) public searchTextInput: ElementRef; Which is...
When trying ViewChild I am getting the error. Error is “An argument for ‘opts’ was not provided.” Both @ViewChild is giving the error. import { Component, OnInit, ElementRef, ViewChild,...
Question What is the most elegant way to get @ViewChild after corresponding element in template was shown? Below is an example. Also Plunker available. Component.template.html: <div id="layout" *ngIf="display"> <div...