Programatically use ion-nav-link to push new component

How do you use the different ion-nav methods programmatically?

Doesn’t seem like it can find the NavController in my vue component

Main component

    <Loading :showLoading="showLoading" message=""></Loading>
    <ion-nav :root="PageOne"></ion-nav>

PageOne component

        <ion-title>Page One</ion-title>
    <ion-content class="ion-padding">
      <h1>Page One</h1>
<!--      <ion-nav-link router-direction="forward" :component="component">-->
        <ion-button @click="goToPageTwo()">Go to Page Two</ion-button>
<!--      </ion-nav-link>-->

It works with the ion-nav-link, but not sure how to implement the same functionality programmatically.
This is what it goToPageTwo currently does on PageOne, which doesn’t do anything and doesn’t give me any errors either

const ionRouter = useIonRouter();

    function goToPageTwo() {
      ionRouter.navigate(PageTwo, 'forward', 'push');

I like to use the vue-router. From Vue Navigation: Use Ionic + Vue Router to Create Multi-Page Apps

<ion-button @click="() => router.push('/detail')">Go to detail</ion-button>

import { useRouter } from 'vue-router';
const router = useRouter();