carousel
An infinite carousel for usage with vigour-element.
how to use
npm i --save vigour-carousel
Add the carousel to your app as a component, define the $collection
for it's items and add the data.
The carousel exposes .next()
and .previous()
methods.
setup
var e = var carousel = // define some datavar Observable = var Data = inject: Child: 'Constructor'Constructor // it expects a "focus" field (this will be used to store the current slide)var carouselData = focus: 0 0:{} 1:{} 2:{} 3:{} // add carousel component to your appvar app = // add your carouselapp // add data to appappval = carouselData