Display a random XKCD comic
# install with npm
npm install vue-xkcd --savevar VueXKCD = require('vue-xkcd')
Vue.use(VueXKCD)Add as a component:
components: {
VueXKCD
}You can then show a comic with:
<xkcd></xkcd>A random image will appear wherever you place the component.