$scope.loryConfig = {
method: {},
event: {
init: function (event, lory) {
},
beforeSlide: function(slideindex) {
},
afterSlide: function(slideIndex) {
},
reInit: function() {},
resize: function() {},
destroy: function() {}
}
};
$scope.loryConfigMethods = {
method: {},
};
$scope.next = function() {
$scope.loryConfigMethods.method.next();
};
$scope.prev = function() {
$scope.loryConfigMethods.method.prev();
};
$scope.events = [];
function handleEvent(e) {
var time = new Date();
time = time.getHours() + ':' + time.getMinutes() + ':' + time.getSeconds() + ',' + time.getMilliseconds();
$scope.events.push('[' + time + '] Event dispatched: "' + e.type + '"');
$scope.$apply();
}
$scope.loryConfig = {
method: {},
event: {
beforeSlide: handleEvent,
afterSlide: handleEvent,
}
};