Now lightGallery gets fired up OK, but the "load more" button doesn't do anything!Įxample: var DemoApp = angular.module('DemoApp', ) įor (x = $scope.total x <= $scope. I tried to combine the two but it still doesn't work. Then I found the solution for making lightGallery work with AngularJS in this StackOverflow question You just need to check the lightgallery plugin documentation found here and then connect your buttons with the proper lightgallery command via a jQuery selector and event handler. For Carousel example you will need Swiper plugin css and js linked to your document: assets/. I want to add a previous/next button to show the previous/next image in the carousel. The "load more" button it self worked, however it broke the lightGallery itself. assets/vendor/lightgallery/plugins/thumbnail/. I am using the latest version of the " jQuery lightGallery" plugin. Var DemoApp = angular.module("DemoApp", ) Most of them don't work and/or doesn't suit my need for loading the elements on request. ![]() ![]() I am using lightGallery for a website and I wanted to add a "load more" button to the gallery page, mostly for faster loading on mobile phones.
0 Comments
Leave a Reply. |