(function Slider() {
const private = 'any'
Slider.staticValue = 'any'
Slider.prototype.instanceValue = 'any'
function Slider(slides, startIndex = 0) {
this.slides = slides
this.currentSlideIndex = startIndex
}
Slider.prototype.getCurrentSlide = function() {
return this.slides[this.currentSlideIndex]
}
return Slider
})()
<select ng-model="currentOption">
<option value="{{item.id}}" ng-repeat="item in items">{{item.name}}</option>
</select>