Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to add slides dynamically? #3

Open
TheAvalanche opened this issue Dec 29, 2014 · 4 comments
Open

Is it possible to add slides dynamically? #3

TheAvalanche opened this issue Dec 29, 2014 · 4 comments
Labels

Comments

@TheAvalanche
Copy link

Hi!
I have tried to add some slides dynamically by

                    $scope.listData.items.push({
                        img: 'http://farm4.staticflickr.com/3455/3372925208_e1f2aae4e3.jpg',
                        link: 'http://flic.kr/p/69489U'
                    });

after page is already rendered. And nothing works. Just wanted to know, either this functionality is possible and I am doing something wrong or it is not supposed to work like this?
//BR

@gilbox
Copy link
Owner

gilbox commented Dec 29, 2014

I haven't tried it before. If can give me a link to a plunk I will take a look at it.

@gilbox gilbox changed the title Is ut possible to add slides dynamically? Is it possible to add slides dynamically? Dec 29, 2014
@TheAvalanche
Copy link
Author

Here is link. Unfortunately, on Plunker for some reason sliding doesn't work, but it doesn't matter. Click on click me and new picture will be added behind the existing not next to it.

http://plnkr.co/edit/XhNBuMu8uEDta4R25MDD

@gilbox
Copy link
Owner

gilbox commented Dec 30, 2014

Thanks, I think this is a bug, and it seems like there might be a bug that requires disable-drag="false" on the infinite-slider element as well.

@evanjmg
Copy link
Contributor

evanjmg commented Jan 30, 2016

I got them working dynamically with an ng-if after data is ready, but there's another issue on mobile when I use google maps in the background - line 211 infinite-slider.js:211 Uncaught TypeError: Cannot read property 'x' of null. It breaks the vertical scroll after a few clicks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants