0.0.6 • Published 7 years ago

vue-fetch-html v0.0.6

Weekly downloads
10
License
ISC
Repository
-
Last release
7 years ago

vue-fetch-html

A little component for fetching html/vue/javascript from the server.

Installation

npm install --save-dev vue-fetch-html

Import it into an existing component:

<script>
  import VueFetchHtml from 'vue-fetch-html'

  export default {
    components: { VueFetchHtml },
  
    ...
  }
</script>

Import the component globally:

import VueFetchHtml from 'vue-fetch-html'

Vue.component('vue-fetch-html', VueFetchHtml)

Usage

<vue-fetch-html url="/some/endpoint">
  // This is just a slot - use it however you want
  <loading-spinner slot="loading"></loading-spinner>
  
  // This is also just a slot
  <whoops-message slot="failed"></whoops-message>
</vue-fetch-html>
0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago