@RCODeGO wrote:
I have this error:
Error: Can’t resolve all parameters for EditPage: ([object Object],
[object Object], [object Object], ?).This is the typescript of EditPage (edit.ts):
import { Component } from '@angular/core'; import { NavController, NavParams } from 'ionic-angular'; import { HomePage } from "../home/home"; import { IconsPage } from '../icons/icons'; @Component ({ selector: 'page-edit', templateUrl: 'edit.html' }) export class EditPage { position: number; notification = this.homePage.allNotifications[this.position]; newDoneText: string = 'Hecho'; newCancelText: string = 'Cancelar'; constructor(public navCtrl: NavController, public iconsPage: IconsPage, public navParams: NavParams, public homePage: HomePage, ) { this.position = navParams.get('position'); } openIcons() { this.navCtrl.push(IconsPage); } changeThisIconName() { this.notification.iconName = this.iconsPage.returnIconName(); } }
And that’s the function that’s put EditPage (home.ts):
openEdit() { this.navCtrl.push(EditPage, {position: this.positionEditNotificationInAllNotifications}); }
¿What’s happend?
Posts: 1
Participants: 1