Routing in Angular 6
When i route to a particular location i navigate with
route.navigate(['/home'], { skipLocationChange: true });
but when returning back to previous route the below code is not helping, Is there any another way or should by remove "{ skipLocationChange: true }"
import {Component} from '@angular/core';
import {Location} from '@angular/common';
@Component({
// component's declarations here
})
class SomeComponent {
constructor(private _location: Location)
{}
backClicked() {
this._location.back();
}
}