< nz-modal [(nzVisible)] = "isShow" [nzTitle] = "title" [nzContent] = "modalContent" [nzFooter] = "modalFooter" (nzOnCancel) = "handleCancel ()" > 
 < ng-template-sharpmodalContent > 
<div  class="content">
</div> < / ng-template > 
 < ng-template-sharpmodalFooter > 
<button nz-button [nzType]=""primary"" (click)="handleOk()" [nzLoading]="isLoading"></button>
<button nz-button [nzType]=""default"" (click)="handleCancel()"></button> < / ng-template > 
 < / nz-modal > 
 ts 
 public isShow = false; 
 public isLoading = false; 
 / / cancel 
 public handleCancel () {
this.isShow = false;} 
 / / confirm 
 public handleOk () {
this.isLoading = true;
this.param["name"] = this.inputValue
this.roleManagementService.addModifyDepartment(this.param).subscribe((res: any) => {
  if (res.status === 0) {
     console.log(res.data)
  } else {
      console.log(res.data)
  }
  this.isLoading = false;
  this.isShow = false;
});}
