Answers for "route to homepage in angular"

1

angular go to route

import {Router} from '@angular/router';

constructor(private router: Router) {}

navigateToLogin() {
   this.router.navigateByUrl('/login');
}
Posted by: Guest on March-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language