Vue-select: How to use it with plain html without any toolchain ?

Created on 21 Jun 2016  路  5Comments  路  Source: sagalbot/vue-select

Hi,
is it possible to use it in a stand alone way ? I would like to reference js and css in an html page and be up and running.

question

Most helpful comment

Hi @valeriob, sorry for the delayed response. I've been out with a concussion the last 10 days and am slowly returning back to the computer now.

This isn't currently possible, but will be in an upcoming release (#70).

All 5 comments

Hi @valeriob, sorry for the delayed response. I've been out with a concussion the last 10 days and am slowly returning back to the computer now.

This isn't currently possible, but will be in an upcoming release (#70).

Thanks i look forward to it !

@valeriob v1.3.0 no longer requires any toolchain to use the component:

Just include vue & vue-select.js - I recommend using npmcdn

<!-- use the latest release -->
<script src="https://npmcdn.com/vue-select@latest"></script>
<!-- or point to a specific release -->
<script src="https://npmcdn.com/[email protected]"></script>

Then register the component in your javascript

Vue.component('v-select', VueSelect.VueSelect);

From there you can use as normal. Here's an example on JSBin. Let me know if you have any questions!

Maybe this should be added to the readme file... it took me a while to figure this out

@Cidro great call, added!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

manjunath-coachthem picture manjunath-coachthem  路  3Comments

fabianmieller picture fabianmieller  路  3Comments

mattWalters0 picture mattWalters0  路  3Comments

pud1m picture pud1m  路  3Comments

rudykaze picture rudykaze  路  3Comments