I have some text data displayed in an item {{ item.id }}
<ion-item (click)="openPhotoList()">
<ion-input type="text" [(ngModel)]="data.findingID">{{ item.id }}</ion-input>
</ion-item>
When I click on the item I start the Method openPhotoList()
openPhotoList() {
this.finding = this.data.findingID;
console.log("finding number", this.finding);
let navigationExtras: NavigationExtras = {
state: {
findingid: this.finding
}
};
this.router.navigate(['/side-camera'], navigationExtras);
}
What I am trying to do is pass the {{ item.id }} from the html page all the way through to the side camera-page. I am not not committed to ion-item or anything for that matter. I just want to pass the data.