I am trying to get the previous route path in Angular, But I don't know how to do that.
I know we can get the previous page location using
this.location.back();
But I don't know how to get the route path like:
/dashboard
I am trying to get the previous route path in Angular, But I don't know how to do that.
I know we can get the previous page location using
this.location.back();
But I don't know how to get the route path like:
/dashboard