@Erkany wrote:
ionViewWillEnter() {
document.getElementById(‘login’).click();
}
signin() {
let input_user = (document.getElementById(‘input_user’) as HTMLInputElement).value;
let input_password = (document.getElementById(‘input_pass’) as HTMLInputElement).value;
this.credentials.email = input_user;
this.credentials.password = input_password;this.authservice.login(this.credentials).then((res: any) => { if (....) this.navCtrl.setRoot('.....'); else alert(...); })
}
Posts: 1
Participants: 1