Answers for "navigate with url 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
0

angular router navigate base href

import { APP_BASE_HREF } from '@angular/common';
Posted by: Guest on September-10-2020

Code answers related to "navigate with url angular"

Code answers related to "Javascript"

Browse Popular Code Answers by Language