Answers for "how to navigate to a route in angular 12"

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 "how to navigate to a route in angular 12"

Code answers related to "Javascript"

Browse Popular Code Answers by Language