Check out example codes for "@ViewChild takes 2 arguments error". It will help you in understanding the concepts better.

Code Example 1

@ViewChild(ChildDirective, {static: false}) Component

Learn ReactJs, React Native from akashmittal.com