📜  如何在 Angular 中重新加载组件 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:24.883000             🧑  作者: Mango

代码示例6
DeleteEmployee(id:number)
  {
    this.employeeService.deleteEmployee(id)
    .subscribe( 
      (data) =>{
        console.log(data);
        this.ngOnInit();
      }),
      err => {
        console.log("Error");
      }   
  }