https://github.com/lassehaslev/vue-crud
Create Read Update Delete logic for vue
https://github.com/lassehaslev/vue-crud
Last synced: about 1 month ago
JSON representation
Create Read Update Delete logic for vue
- Host: GitHub
- URL: https://github.com/lassehaslev/vue-crud
- Owner: LasseHaslev
- Created: 2016-12-21T20:33:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-20T06:14:30.000Z (over 9 years ago)
- Last Synced: 2025-02-05T22:05:27.258Z (over 1 year ago)
- Language: JavaScript
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @lassehaslev/vue-crud
> Create read update delete logic for Vue
# Installation
Run ```npm install @lassehaslev/vue-crud --save``` in your project folder
## Usage
```js
import Crud from '@lassehaslev/vue-crud';
export default {
mixins: [ Crud ],
template: `
Name
Action
{{ item }}
Empty
Remove
Append empry
Prepend empry
Delete all
`,
data() {
return {
items: [
'Html',
'Css',
'Javascript',
],
}
},
```
## Development
``` bash
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
```
For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).