changes.md 883 B

More flexible directive syntax

  • v-on

  • v-style

  • custom directive fsef

  • v-repeat

      <li v-repeat="{
    data     : list,
    as       : 'item',
    filterBy : filterKey,
    orderBy  : orderKey
    

    }">

Two Way filters

  <input v-model="abc | email">
Vue.filter('format', {
  read: function (val) {
    return val + '!'
  },
  write: function (val, oldVal) {
    return val.match(/ok/) ? val : oldVal
  }
})

(Experimental) Validators

  <input v-model="abc @ email">
  Vue.validator('email', function (val) {
    return val.match(...)
  })
  // this.$validation.abc // false
  // this.$valid // false