We'll now add the slider functionality to ListingSummaryGroup. To do this, we'll reuse the CarouselControl component we made back in Chapter 6, Composing Widgets with Vue.js Components. We'll want to display one on either side of the group, so let's put them into the template, remembering to declare the dir attribute. We'll also add some structural markup and CSS for displaying the controls.
resources/assets/components/ListingSummaryGroup.vue:
<template> <div class="listing-summary-group"> <h1>Places in {{ country }}</h1> <div class="listing-carousel"> <div class="controls"> <carousel-control dir="left"></carousel-control> <carousel-control dir="right"></carousel-control> </div> <div class="listing-summaries-wrapper">