angular-carousel icon indicating copy to clipboard operation
angular-carousel copied to clipboard

Added support for carouselTap message to be emitted when slide clicked/tapped

Open scm6079 opened this issue 9 years ago • 1 comments

This commit adds support for a carouselTap message to be emitted when the carousel has an item tapped (as opposed to dragged) - which allows parents to create controls that perform actions on tap (e.g. opening a full-screen viewer).

Within parent scopes (controller/directive/etc) you can:

     $scope.$on('carouselTap', function(event, target){
        console.log('YOU TAPPED!  The item you tapped is:', target );
     });

Those can use the target passed to determine an appropriate action as necessary.

scm6079 avatar Apr 30 '15 22:04 scm6079