<div id="my_view">
  Show items containing:
  <input v-model="search" type="text" />
  <ul>
    <li v-for="friend in friends | filterBy search in 'name'"> {{ friend.name }} </li>
  </ul>
</div>
var myModel = {
  name: "Ashley",
  age: 24,
  friends: [
    { name: "Bob", age: 21 },
    { name: "Jane", age: 20 },
    { name: "Anna", age: 29 }
  ],
  search: ""
};

var myViewModel = new Vue({
  el: '#my_view',
  data: myModel
});
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.26/vue.min.js