pablocattaneo
7/11/2017 - 11:25 AM

Relative path Angular 2

Relative path Angular 2

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

constructor(private route: ActivatedRoute) { }

this.router.navigate(['/edit'], {relativeTo: this.route});