angular redirect on submit
constructor(private router: Router) { }
onSubmit() {
// some stuff
this.router.navigate(['/search']);
}
Are there any code examples left?
New code examples in category TypeScript
constructor(private router: Router) { }
onSubmit() {
// some stuff
this.router.navigate(['/search']);
}