0
is giving error in the push =(( I am not able to make the home page call the Timeline page
import { Component , ViewChild } from '@angular/core';
import { NavController} from '@ionic/angular';
import { TimelinePage } from "../timeline/timeline";
@Component({
selector: 'app-home',
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
})
export class HomePage {
@ViewChild('Usuario') email;
@ViewChild('password') senha;
constructor(public NavCtlr : NavController){ }
entrar(){
if(this.email.value == "fernando" && this.senha.value == "123"){
this.NavCtlr.push(TimelinePage);
}else{
}
}
}
<!-- begin snippet: js hide: false console: true babel: false -->
Edit the question and enter your code; not the screen print!
– Luiz Augusto
OK I’ll change ...
– Fernando Alencar
Welcome to Sopt. For a better answer, try to express yourself better. Where exactly does the error occur, what kind of error and its description? Add as much information as possible in the post.
– Breno
in the log this spelled "Property 'push' do not exist on type 'Navcontroller'
– Fernando Alencar