📜  角度如何导航回来 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:01:09.404000             🧑  作者: Mango

代码示例1
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();
  }
}