To add an Angular back button to the stack router outlet in Chrome, you can follow the below steps:
import { Location } from '@angular/common';
constructor(private location: Location) { }
goBack() {
this.location.back();
}
goBack()
method<button (click)="goBack()">Back</button>
With these steps, you should be able to add a back button to your stack route outlet in Chrome.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2022-01-08 11:00:00 +0000
Seen: 15 times
Last updated: Aug 08 '21
How can a python script be executed using a chrome extension?
How can Chrome be set up to detect SSL certificates from Wamp Apache?
How to turn off the automatic update feature of Google Chrome on Windows 11?
How can I use Puppeteer with an existing installation of Chrome on MacOS?
Is there a way to add JS code to Chrome without using an extension?
How to change the URL in a Chrome extension?
How can one create a PDF using the Selenium Chrome driver?
How to look for information within a JSON object using Google Chrome DevTools?
What is the appropriate way to utilize react router?
What does the error "404 Frontend Only" mean in Vue SPA router when using history mode?