viewchild angular expected 2 arguments but got 1 code example Example: angular viewchild second parameter @ViewChild(ChildDirective, {static: false}) Component