mihnsen / ui-carousel

A simple, lightweight module for carousel in your AngularJS app, Inspired from slick carousel.
http://mihnsen.github.io/ui-carousel/
MIT License
77 stars 67 forks source link

Uninitialized slide object #7

Closed f10l closed 7 years ago

f10l commented 7 years ago

Hi,

sorry for the second issu. I thought it might be good to split, since for this, I don't even know if it is a real bug.

I would like to use json objects as slide array for having the possibility of image description.

I modified your codepen for this: http://codepen.io/anon/pen/WpVbRQ

When opening first time, it gives an error in the console: http://s.codepen.io/boomerang/iFrameKey-4828c091-8050-7970-2dc8-5a293168080d/%7B%7B%20item.url%20%7D%7D 404 (Not Found) So I guess the item.url is not yet initialized.

Thanks again and best regards, Fabian

tarkant commented 7 years ago

Try to use ng-src="" instead of src="" and that error will eventually disappear. Cheers.

f10l commented 7 years ago

Thanks a lot! It seems to be working with that

mihnsen commented 7 years ago

It seems like this issue not related to ui-carousel. close now.