@Viewchild() needs 2 arguments code example Example: @ViewChild takes 2 arguments error @ViewChild(ChildDirective, {static: false}) Component