ngmodel ionic modal not working code example

Example 1: ion input ngmodel not working ionic 6

<ion-input [value]="myData" (ionChange)="onChange($event,data)">
...
onChange(event:any,value:any){
	console.log(event.detail.data)
}

Example 2: ionic modal navbar not showing

// change <ion-navbar> to <ion-toolbar>
// before
<ion-navbar primary  *navbar>
  <ion-title>Bug</ion-title>
  <ion-buttons end>
    <button (click)="close()">
      <ion-icon name="close" ></ion-icon>
    </button>
  </ion-buttons>
</ion-navbar >

// after
<ion-toolbar primary >
  <ion-title>Fixed</ion-title>
  <ion-buttons end>
    <button (click)="close()">
      <ion-icon name="close" ></ion-icon>
    </button>
  </ion-buttons>
</ion-toolbar>