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...
  • May 18, 2022
  • 0 Comments
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...
  • May 13, 2022
  • 0 Comments