How to get component instance in ionic angular 6

I have an ion-nav component on the page and I need to get an instance of it in the code behind. You used to do @ViewChild(Nav) nav: Nav to get it, but the Nav class doesn’t exist. How do I get it in code now?

@ViewChild(IonNav) ionNav? :smiley:

yep that’s it. Thanks.