Issue with Detail page


#1

I’m working to develope my first mobile app, I have home.html

<ion-item *ngFor=“let post of postList | search:‘title,body’:query”>
{{post.title}}
<p [innerHtml]=“post.body”>


<button ion-button clear item-end (click)=“openItem(postList)”>Leggi
</ion-item>

home.ts

openItem(post : RemoteServiceProvider){
this.navCtrl.push(AnnuncioPage);

}


annuncio.ts

export class AnnuncioPage {
postList = [];
constructor(public navCtrl: NavController, public navParams: NavParams, private remoteService : RemoteServiceProvider) {
this.postList = navParams.get(‘postList’);

}

annuncio.html


{{post.title}}

Then, when I click on the button in home page I have the issue:
Runtime Error
Uncaught (in promise): TypeError: Cannot read property ‘item’ of undefined TypeError: Cannot read property ‘item’ of undefined at Object.eval [as updateRenderer]
Where is my error? Thank you!


#2

Issue solved, like this