title: Login or Register Button Not Working In Angular/Firebase
body: <pre><code>import { Component, OnInit } from '@angular/core';
  import {Router} from '@angular/router';
  import{AngularFireAuth} from '@angular/fire/compat/auth';
  
  @Component({
    selector: 'app-login',
    templateUrl: './login.page.html',
    styleUrls: ['./login.page.scss'],
  })
  export class LoginPage implements OnInit {
  
    user={
      email :'',
      password :''
    };
  
    public ngFireAuth:AngularFireAuth;
  
    constructor(private router: Router){}
  
    ngOnInit() {
    }
  
    async login()
    {
      const user=await this.ngFireAuth.signInWithEmailAndPassword(this.user.email,this.user.password);
      console.log(user);
      if(user.user.email)
      {
        this.router.navigate(['/home']);
      }
      else{
        alert('Login Failed!');
      }
    }
  
    async register()
    {
      const user=await this.ngFireAuth.createUserWithEmailAndPassword(this.user.email,this.user.password);
      console.log(user);
      if(user.user.email)
      {
        alert('Registration sucessfull!');
      }
      else{
        alert('Registration Failed!');
      }
    }
  }
  </code></pre>
  <p>The above code is from my login.page.ts</p>
  <pre><code>&lt;ion-header&gt;
    &lt;ion-toolbar&gt;
      &lt;ion-title&gt;Login&lt;/ion-title&gt;
    &lt;/ion-toolbar&gt;
  &lt;/ion-header&gt;
  
  &lt;ion-content&gt;
    &lt;ion-card&gt;
      &lt;ion-item&gt;
        &lt;ion-input [(ngModule)]=&quot;user.email&quot; placeholder=&quot;Enter Email&quot;&gt;&lt;/ion-input&gt;
      &lt;/ion-item&gt;
    &lt;/ion-card&gt;
    &lt;ion-card&gt;
      &lt;ion-item&gt;
        &lt;ion-input [(ngModule)]=&quot;user.password&quot; placeholder=&quot;Enter Password&quot; type=&quot;password&quot;&gt;&lt;/ion-input&gt;
      &lt;/ion-item&gt;
    &lt;/ion-card&gt;
    &lt;ion-card&gt;
      &lt;ion-item&gt;
        &lt;ion-button (click)=&quot;login()&quot;&gt;Login&lt;/ion-button&gt;
        &lt;ion-button expand=&quot;block&quot; color=&quot;secondary&quot; (click)=&quot;register()&quot;&gt;Register&lt;/ion-button&gt;
      &lt;/ion-item&gt;
    &lt;/ion-card&gt;
  &lt;/ion-content&gt;
  </code></pre>
  <p>The above code is from my login.page.html</p>
  <p>I am not getting any response when I click the register or login button. I have implemented Google Firebase for authentication of the user but after entering the email and password, the user doesn't get register nor can login. Please help me out!</p>