vue-inline
Inline anything in your Vue component, like string / component / images et al
Install
$ npm install --save vue-inline
Usage
Register the component globally:
Vue
Inline it in your component:
<template> <!-- render a srring --> <inline name="foo"></inline> <!-- render an image --> <inline name="bar"></inline></template>
Or register the inline component locally:
const Inline = // register `Inline` in your component
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D