By default, there is no Finally
block for a Promise. To use a Finally
block with your promise, you can use the Shim promise.prototype.finally
.
- Install * promise.prototype.finally *
|
|
- Install the typing
|
|
- Import the shim into your * app.module.ts * and initialize it.
|
|
- You can now use the Finally block as follows.
|
|
This text was automatically translated with our golang markdown translator.