Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"presets": [
["env", { "modules": false }],
"stage-2"
["env", { "modules": false }]
],
"plugins": ["transform-runtime"],
"env": {
"test": {
"presets": ["env", "stage-2"],
"presets": ["env"],
"plugins": [ "istanbul" ]
}
}
Expand Down
37 changes: 33 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,37 @@
# autocomplete-vuejs2
# v-complete

> Autocomplete component using Vue.js 2
> Autocomplete component using Vue 2 and Bootstrap

## Component Usage

In your project terminal:

```bash
npm i -s mykeels/v-complete
```

In your Vue script:

```js
import VueComplete from 'v-complete'

Vue.use('v-complete', VueComplete)
```

In your template html:

```html
<v-complete
:suggestions="[
{ 'name': 'Bangladesh', 'description': 'Bangladesh' },
{ 'name': 'Lagos', 'description': 'Lagos' }
]"
:limit="5"
:threshold="0.3"
value="Lagos"
placeholder="Select a City"
></v-complete>
```

## Build Setup

Expand All @@ -19,5 +50,3 @@ npm run build --report
```

For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).


2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<title>autocomplete-v2</title>
<title>v-complete</title>
</head>
<body>
<div id="app"></div>
Expand Down
Loading