0.2.2 • Published 6 years ago

vue2-siema v0.2.2

Weekly downloads
1,307
License
MIT
Repository
github
Last release
6 years ago

vue2-siema

npm vue2

A wrapper for the siema javascript library

vue2-siema Logo

Usage

See this demo.

Installation

npm install --save vue2-siema

or

yarn add vue2-siema

import with bundler

import Vue from 'vue'
import Siema from 'vue2-siema'

Vue.use(Siema)

Nuxt

In nuxt.config.js

plugins: [
  {
    src: '~/plugins/vue2-siema.js',
    ssr: false
  }
]

In plugins/vue2-siema.js

import Vue from 'vue'
import Siema from 'vue2-siema'

Vue.use(Siema)

Wrap in no-ssr

<no-ssr>
  <siema class...></siem>
</no-ssr>

A full Nuxt demo

Plain vue

  <script type="text/javascript" src="//unpkg.com/vue"></script>
  <script src='siema.min.js'></script>
  <script src='vue2-siema.min.js'></script>
 <script type="text/javascript">
     Vue.use(Siema)
     new Vue({...})
 </script>

Credits

pawelgrzybek/siema The siema library mentor!


License

MIT

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago