模态确认后刷新屏幕(Angular)

Refresh a screen after a modal confirmation(Angular)

我卡住了。

confirmDeleteSubmission(content) {
   this.modalService.open(content, { ariaLabelledBy: 'modal-basic-title' }).result.then((result) => {
      if (result == 'ok') {
         this.deleteSubmissionEvent.emit('delete');
         // refresh the screen
         setTimeout(() => {

         }, 1000);
      }
   });
}

我正在努力让 setTimeout 工作。基本上在用户点击确定后,整个屏幕都会刷新。 我该怎么做?

谢谢

而不是刷新页面调用相应的 API 来刷新页面数据-

confirmDeleteSubmission(content){
this.modalService.open(content, {ariaLabelledBy: 'modal-basic-title'}).result.then((result) => {
  if(result == 'ok'){
    this.deleteSubmissionEvent.emit('delete');
    // refresh the screen
    setTimeout(() => {
      // call your get data API's
      getNewListOfItemsAfterDeletion();
    }, 1000);
  }
});