1
Ich erhalte einen Fehler, wenn ich zur Produktseite navigiere, die ich NavParams
benutze. Hier ist mein Code:Fehler: Kein Anbieter für NavParams
import { Component } from '@angular/core';
import { NavController, NavParams, AlertController, ModalController } from 'ionic-angular';
@Component({
selector: 'page-product',
templateUrl: 'product.html'
})
export class ProductPage {
data: any;
constructor(public navParams: NavParams) {
this.tabBarElement = document.querySelector('.tabbar.show-tabbar');
this.data = this.navParams.get('item');
console.log(this.data);
}
}
Vielen Dank im Voraus.
Nein, es funktioniert nicht so !! –
Das ist ziemlich nachdrücklich für etwas, das direkt den Dokumenten widerspricht – Kai