<commit_before># vue-select2

## Requirements
- JQuery 1.9.0 or later
- Select2 4.0.0 or later
- Vue 0.12.0 or later

## Usage

### Javascript

```js
	Vue.use( vueSelect2 );
``

### HTML

``` html
	<select v-select2="options: data, value: selected"></select>
```<commit_msg>Full usage instructions<commit_after># vue-select2

## Requirements
- JQuery **1.9.0** or later
- Select2 **4.0.0** or later
- Vue **0.12.0** or later

## Usage
The first step is import and/or  use the plugin, you can import it via CommonJS or just use it directly.

#### CommonJS
```js
	var select2 = require("vue-select2);
	Vue.use( vueSelect2 );
```

#### Global variable
If you don't have CommonJS then a variable called "vueSelect2" will be available on window scope.
```js
	Vue.use( vueSelect2 );
```

The next step is tell the plugin which Model's attributes you are going to use (via *HTML*)

### HTML

```html
	<select v-select2="options: data, value: selected"></select>
```

Where *options* binding is an array containing the values that you want to show and *value* binding is where you want to save the selected value.

## Example
```html
	<div id="demo" class="container">
		<select v-select2="options: countries, value: selectedCountry"></select>
		<h4>Welcome to {{ selectedCountry }}</h4>
	</div>
```

```js
	Vue.use( vueSelect2 );
	
	new Vue({
		el: "#demo",
		data: {
			countries: ["México", "USA", "Brazil", "Argentina", "Chile"],
			selectedCountry: null // don't forget to add it even if it's valueless (read Vue docs)
		}
	});
```
{'fraction_non_alphanumeric': 0.15772251308900523, 'fraction_numerical': 0.02356020942408377, 'mean_word_length': 4.029605263157895, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1478173', 'n_tokens_mistral': 563, 'n_tokens_neox': 519, 'n_words': 186}