I was using ViewChild as follows:
@ViewChild("InternalMedia") localStream;
@ViewChild("emoji") mEmoji;
Which was working fine till angular-7.x
as soon as I upgraded it to angular-8.x it started giving following error
.../call_emoji/component.ts(41,4): error TS2554: Expected 2 arguments, but got 1.
I checked https://angular.io/api/core/ViewChild and when I change it to
@ViewChild("InternalMedia",{static:false}) remoteStream;
It works. I'm not getting what static does and what should be it's value to work as previous?