DEV Community

Discussion on: Unable to await Delete Method.

Collapse
 
gaurangdhorda profile image
GaurangDhorda

Rather await you can subscribe () and inside subscribe add your code.
this.configurationService.deleteTrf(this.trfCode).subscribe ( e =>{
this.afterStatusChange();
} )

So this subscribe code block runs only after delete request completed. Kind of await for you. For further discussion you can connect with me by email grdtechlab@gmail.com thanks!

Collapse
 
idgo profile image
ID-GO

Thanks..