angular redirect on submit code example
Example: angular redirect on submit
constructor(private router: Router) { }
onSubmit() {
// some stuff
this.router.navigate(['/search']);
}
constructor(private router: Router) { }
onSubmit() {
// some stuff
this.router.navigate(['/search']);
}