Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49247

Js code does not work the before a one time click anywhere the page

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 49247

Trending Articles



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