Vue.JS 2 Tutorial #36 - Custom Search Filter 정보
Vue Vue.JS 2 Tutorial #36 - Custom Search Filter본문
Custom Search Box
<input type="text" v-model="search" placeholder="search blogs" />
computed: {
filterdBlogs: function() {
return this.blogs.filter((blog) => {
return blog.title.match( this.search);
});
}
}
추천
0
0
댓글 0개