Skip to content

Commit

Permalink
Merge pull request #2 from el-jacko/validation
Browse files Browse the repository at this point in the history
Validation
  • Loading branch information
el-jacko committed Jun 4, 2017
2 parents 8e162e3 + 7900b97 commit cbfc196
Show file tree
Hide file tree
Showing 5 changed files with 554 additions and 400 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
node_modules/
dist/
npm-debug.log
json/
json/
notes.txt
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"dependencies": {
"axios": "^0.16.1",
"validator": "^7.0.0",
"vue": "^2.2.2",
"vue-awesome": "^2.1.0",
"vue-resource": "^1.2.1"
Expand Down
8 changes: 8 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@
title: 'Vorname',
name: 'firstname',
editable: true,
validator: {
rules: [
'ip4',
],
messages: [
'Must be alpha',
],
},
},
{
title: 'Nachname',
Expand Down
Loading

0 comments on commit cbfc196

Please sign in to comment.