When trying ViewChild I am getting the error. Error is \"An argument for \'opts\' was not provided.\"
Both @ViewChild is giving the error.
That also resolved my issue.
@ViewChild('map', {static: false}) googleMap;