Go back to Examples

Slice collection list

CMS - Intermediate

The slice method allows you to slice a collection list using start and end values.

                <template v-for="post in posts.slice(0,3)">
    <h1 v-html="post.name"></h1>
</template>