📜  重新加载子组件 Angular - Javascript 代码示例

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

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