Friday, November 12, 2021

Angular @ViewChild() error: Expected 2 arguments, but got 1


Below Here given solution. 

 In Angular 12 , ViewChild takes 2 parameters

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

No comments:

Post a Comment

How to build an Express and Node.js app with Typescript

  In this tutorial, you will learn how to set up a Node.js and Express project with Typescript and live auto-reloading. Note that this metho...