navPush does not work


#1

I have a search engine and two lists, when I click on any word of the search engine result, it redirects me to the product detail, but if it spikes on the product it does not redirect me to the detail as such.
On another page, I redirect the product detail but not the search result.
In short, the navPush only works for one and not for the other.

Este es mi HTML

<ion-refresher (ionRefresh)=“prodProv.RefrescaRecomendaciones($event)” (ionRefresh)=“prodProv.RefrescaPromosHome($event)”>


<ion-list class="resBusq">
  <ion-item *ngFor="let item of prodProv.resultados"
                  [navPush]="detalleProducto"
                  [navParams]="{ producto: item }">
    {{ item.name }}
  </ion-item>
</ion-list>

Promociones

{{ promo.name }}
{{ promo.nameCat }}
{{ promo.description }}
₡ {{ promo.PrecioFinal }}

Recomendaciones

{{ recomendacion.name }}
{{ recomendacion.nameCat }}
{{ recomendacion.description }}
₡ {{ recomendacion.PrecioFinal }}

Este es mi servicio

constructor(public navCtrl: NavController, public navParams: NavParams, private carProv:CompraProvider, public toastCtrl: ToastController,
private alertCtrl:AlertController, private logProv:LoginProvider, private regProv:RegistroProvider) {

this.producto = this.navParams.get("producto");//Aquí estamos trayendo el producto

}


#2
openPage() {
this.navCtrl.push('yourPageName')
}

works better


#3

thanks, it works very well for me