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.
Stefan Welsch – Pionier, Stuntman, Mentor. Als Gründer von b-nova ist Stefan immer auf der Suche nach neuen und vielversprechenden Entwicklungsfeldern. Er ist durch und durch Pragmatiker und schreibt daher auch am liebsten Beiträge die sich möglichst nahe an 'real-world' Szenarien anlehnen.