Skip to content
This repository has been archived by the owner on Dec 25, 2017. It is now read-only.

Commit

Permalink
📝 docs(gitbook): fix data option (#305)
Browse files Browse the repository at this point in the history
data属性应该是属于vue实例的,而不是validators选项
  • Loading branch information
fbwfbi authored and kazupon committed Sep 3, 2016
1 parent 01b1175 commit 94ccd3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/zh-cn/async.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ ValidationError.prototype.constructor = ValidationError

// exmpale with ES2015
export default {
validators: {
data () {
data () {
return { checking: false }
},
},
validators: {
exist (val) {
this.vm.checking = true // spinner on
return fetch('/validations/exist', {
Expand Down

0 comments on commit 94ccd3a

Please sign in to comment.