1

follow is my code, if I emty the construction parameter thecode will work.but Likethis router linkwill not work.

import { Component, OnInit } from '@angular/core';
import { AuthService } from '../auth.service';

@Component({
  selector: 'app-login',
  templateUrl: './login.component.html',
  styleUrls: ['./login.component.scss']
})
export class LoginComponent implements OnInit {

  constructor(private afAuth : AuthService) { }

  ngOnInit(): void {
  }
  login(){
   
  }

}
  • Can you share what your AuthService and html files look like? I think it will add more details to your question. Also, are you getting any error messages? If yes, can you share them as well? – aghwotu Dec 15 '22 at 01:48

0 Answers0