Can you update your formatting so your post is readable?
Secondly, seems like you are trying to push the string ‘Page2’ onto the nav stack instead of the actual component Page2. Hard to know for sure though since it’s all formatted wrong.
SetRoot will clear all the previous pages on the stack and put the page you specified as the rootPage. Why dont you just juse navigate.push()?
Regarding to linking the page, you have to import the page page2 into productos page before using it. Then use that class name in the push method. It is not possible to do that from your template directly.
i have this imports into productos.ts at the top
import { Page2 } from ‘page2/page2’;
import { Component } from ‘@angular/core’;
import { App, NavController, NavParams } from ‘ionic-angular’;
import { Prints } from ‘…/pages/prints/prints’;
The in cardSelected(card: CardType) use navParams to push the card variable to your new page. Don’t make the ion-card directly clickable. That leads to unpredictable behavior. Not documented as far as I know, but it’s a real thing. (IE don’t do <ion-card (click)=""> )
No, i’m getting same result. now is not possible run the app…
here is the code of productos.ts
import { Page2 } from ‘page2/page2’;
import { Component } from ‘@angular/core’;
import { App, NavController, NavParams } from ‘ionic-angular’;
import { Prints } from ‘…/pages/prints/prints’;
i don’t need to pass any parameter to page2. i’m in a page called productos.html and i just want to go to page2.html ( i got productos.html from sidemenu)
if i use this line this.navCtrl.push(Page2); i can’t compile app because Page2 seems doesn’t exists
sorry if a not so clear… im doing my best but my english is not so good
im using a fresh start. now im trying with a new project. i just create a new project using sidemenu template.
this template has two pages. page 1 and page 2…
i just want to put a link from page 1 to page 2 and i cant!!
i’m getting crazy. i dont know what to do…