I just recently started using angular 4 instead of angular.js 1.
I have followed the heroes tutorial to learn about the fundamentals of angular 4 and I am currently
Angular Redirection manually: Import @angular/router, Inject in constructor() then call this.router.navigate().
@angular/router
constructor()
this.router.navigate()
import {Router} from '@angular/router'; ... ... constructor(private router: Router) { ... } onSubmit() { ... this.router.navigate(['/profile']); }