Horje
expected 2 arguments but got 1. viewchild angular Code Example
expected 2 arguments but got 1. viewchild angular
/*
error TS2554: Expected 2 arguments, but got 1.
In Angular 8, ViewChild takes 2 parameters
In Angular 9 default value is static: false, so doesn't need to provide param unless you want to use {static: true}
*/

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

/*
I hope it will help you.
Namaste
*/




Typescript

Related
remove dots from ul li Code Example remove dots from ul li Code Example
disable li decoration Code Example disable li decoration Code Example
vscode custom snippets how to use file name Code Example vscode custom snippets how to use file name Code Example
how to remove dots in ul li Code Example how to remove dots in ul li Code Example
check all running ports ubuntu Code Example check all running ports ubuntu Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
15