Evan You 12 anni fa
parent
commit
4facaabd1e
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      changes.md

+ 3 - 3
changes.md

@@ -56,9 +56,7 @@ These two have caused confusions about when they'd actually fire, and proper use
 
 ## Two Way filters
 
-``` html
-  <input v-model="abc | email">
-```
+If a filter is defined as a function, it is treated as a read filter by default - i.e. it is applied when data is read from the model and applied to the DOM. You can now specify write filters as well, which are applied when writing to the model, triggered by user input. Write filters are only triggered on two-way bindings like `v-model`.
 
 ``` js
 Vue.filter('format', {
@@ -89,6 +87,8 @@ Vue.filter('format', {
 
 ## (Experimental) Validators
 
+This is largely write filters that accept a Boolean return value. Probably should live as a plugin.
+
 ``` html
   <input v-model="abc @ email">
 ```