Promises
Promise as a value of an expression is not supported. However, the library supports promises by the html.resolve
method.
arguments:
promise
- promise, which should resolve/reject update functionplaceholder
- update function for render content until promise is resolved or rejecteddelay
- delay in milliseconds, after which placeholder is rendered
returns:
update function compatible with content expression
Click and play with web component example connected to external API:
Last updated