Documentation / @warp-drive/ember
@warp-drive/ember
This library provides reactive utilities for working with promises and requests, building over these primitives to provide functions and components that enable you to build robust performant apps with elegant control flow.
Using in .hbs files
The components and reactive utilities this library exports are intended for use with gjs/gts
(Ember's Template Tag Format.
To use them in handlebars (.hbs
) files, your app should re-export them.
Definition
ts
export { Await as default } from '@warp-drive/ember';
Usage
hbs
<Await @promise={{this.getTheData}}></Await>
This approach allows renaming them to avoid conflicts just by using a different filename if desired:
ts
export { Await as default } from '@warp-drive/ember';
hbs
<WarpDriveAwait @promise={{this.getTheData}}></WarpDriveAwait>