Angular4_ Return to previous page

The easiest way to implement. . .

<button (click)="goBack()" class="btn btn-outline-info" style="float:left;width:180px">Back</button>
goBack() {
    history.go(-1);
  }

If you want to keep the data. Optional routing

Link: Click to open the link

Possible errors: Click to open the link

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326653322&siteId=291194637