Issue with Detail page

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

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

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


openItem(post : RemoteServiceProvider){



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




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!

Issue solved, like this

1 Like