Angular @ViewChild() error: Expected 2 arguments, but got 1 May 19, 2023 by Tarik In Angular 8 , ViewChild takes 2 parameters @ViewChild(ChildDirective, {static: false}) Component