Load data on demand
Last updated
Was this helpful?
Last updated
Was this helpful?
With Ember Await you can load your data on-demand (eg. on button click). To do it, we need to use argument and call the promise using property.
Remember! this.fetchPosts
needs to return a function
This way, the content from await.Initial
will be displayed until we click the button
and posts will load.