Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

angular go to route

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

constructor(private router: Router) {}

navigateToLogin() {
   this.router.navigateByUrl('/login');
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #angular #route
ADD COMMENT
Topic
Name
8+5 =