Wednesday, 31 March 2021

Angular Back Button

 Angualr back button Move to previous page

ts:

goBack() {
    this.location.back();
  }
private locationLocation
import { Location } from '@angular/common';
html:
  <button  (click)="goBack()"  class="btn btn-primary btn-sm">BACK</button>

No comments:

Post a Comment

API run block issue run api from cmd

  ✅ Debug Checklist – “Access is Denied” (.NET / Visual Studio) 🔹 Identify Problem ☐ Error: Unable to start program (.exe) – Access is deni...