Go back to Examples

Filter collection list

CMS - Intermediate

The filter method allows you to filter a collection list by a field and value of that field. You can filter by values such as is set, not set and equals.

                <template v-for="post in posts.filter(filterByProp.bind(null, 'popularPost', '!!', ''))">
    <h1 v-html="post.name"></h1>
</template>