async-content
A vue.js component that facilitates pulling from any asynchronous source (e.g. the WP-REST API) and displays default content until loaded
How-to use:
Install:
# install dependenciesnpm install --save async-content
Use in your Vue component:
<template><div id="app"><async-content :map-{const vm =posts:{vmposts = json}return vm}}</script><style>bodyfont-family: Helvetica sans-serif;</style>
Example: Coming soon. In the meantime, clone this repo, install, buid and 'npm run dev'