1.0.4 • Published 4 years ago

vue-kire-switch v1.0.4

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

Install

npm i vue-kire-switch to install from npm

or it can be linked directly with the links to CDN version:

https://unpkg.com/vue-kire-switch or https://unpkg.com/vue-kire-switch@1.0

To use in cakephp project (from CDN)

  1. at the top of the cake template file add:
<?php
    echo $this->Html->script('https://cdn.jsdelivr.net/npm/vue@2.6.14');
    echo $this->Html->script('https://unpkg.com/vue-kire-switch');
?> 

somewhere in the code it needs have vueapp ID:

   <div id="vueapp">
      <vue-kire-switch></vue-kire-switch>
   </div>

at the end of the template file it needs to create Vue app and register the component:

<script>
  new Vue({ 
            el: '#vueapp',
            components: {
                VueKireSwitch
            }
         })
</script>
1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.0

4 years ago