Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

[ts] Property 'push' does not exist on type 'NavController'

$
0
0

@albertserra wrote:

I’m trying a simple example in: CLI PRO 4.2.1 and v4-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

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>