Skip to content

Commit 99d8af5

Browse files
committed
bump readme
1 parent b538fb4 commit 99d8af5

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

README.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ Rather than bringing in jQuery just to use Select2 or Chosen, this Vue.js compon
2323
- Rich Option Templating
2424

2525
## Live Examples & Docs
26-
[http://sagalbot.github.io/vue-select/](http://sagalbot.github.io/vue-select/)
26+
- [Demo & Docs](http://sagalbot.github.io/vue-select/)
27+
- [Live Example on JSBin](http://jsbin.com/saxaru/5/edit?html,js,output)
2728

2829
## Install / Usage
29-
vue-select is now published on npm, **huge thanks to [@onefriendaday](https://github.com/onefriendaday)** for changing ownership of [his package](https://github.com/onefriendaday/vue-select).
30+
31+
#### NPM Based WorkFlows
3032
``` bash
3133
$ npm install vue-select
3234
```
@@ -52,6 +54,26 @@ export default {
5254
</script>
5355
```
5456

57+
#### Browser Globals
58+
59+
`v1.3.0+` no longer requires any toolchain to use the component:
60+
61+
Just include `vue` & `vue-select.js` - I recommend using [npmcdn](https://npmcdn.com/#/).
62+
63+
```html
64+
<!-- use the latest release -->
65+
<script src="https://npmcdn.com/vue-select@latest"></script>
66+
<!-- or point to a specific release -->
67+
<script src="https://npmcdn.com/vue-select@1.30"></script>
68+
```
69+
Then register the component in your javascript:
70+
71+
```js
72+
Vue.component('v-select', VueSelect.VueSelect);
73+
```
74+
75+
From there you can use as normal. Here's an [example on JSBin](http://jsbin.com/saxaru/5/edit?html,js,output).
76+
5577
## Parameters
5678
```javascript
5779
/**

0 commit comments

Comments
 (0)