@albertserra wrote:
I’m trying a simple example in:
CLI PRO 4.2.1
andv4-beta
.Then, I have one page, in the sidemenu app.
import { Component } from '@angular/core'; import { NavController, AlertController, LoadingController } from '@ionic/angular'; import { AuthService } from '../auth.service'; @Component({ selector: 'app-login', templateUrl: './login.page.html', styleUrls: ['./login.page.scss'], }) export class LoginPage { registerCredentials = { email: '', password: '' }; constructor( private nav: NavController ) { } public createAccount() { return this.nav.push('RegisterPage'); } }
And show me an error in
this.nav.push('RegisterPage');
.
it says:[ts] Property 'push' does not exist on type 'NavController'.
it change anything from ionic-v3?
Posts: 2
Participants: 2