📜  刷新当前组件角度 - Javascript代码示例

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

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