25.06.2018 Views

Full-Stack Vue.js 2 and Laravel 5

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

esources/assets/components/HomePage.vue: <br />

import<br />

routeMixin from '../<strong>js</strong>/route-mixin'; import ListingSummaryGroup from<br />

'./ListingSummaryGroup.vue'; import { groupByCountry } from '../<strong>js</strong>/helpers';<br />

export default { mixins: [ routeMixin ], data() { return { listing_groups: [] }; },<br />

methods: { assignData({ listings }) { this.listing_groups =<br />

groupByCountry(listings); } }, components: { ListingSummaryGroup<br />

} } <br />

Most developers will use the terms image carousel <strong>and</strong> image<br />

slider interchangeably. In this book, I make a slight distinction, a<br />

carousel contains a single image that gets completely switched out<br />

with another, while a slider shifts the position of images, with<br />

several visible at once.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!