You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem Most data binding libraries like knockout and Angular allow to dynamically add DOM elements. When this happens, itemslide does not attach events to the newly added items.
example
<div id="carousel">
<li ng-repeat="item in items" ng-bind="item.label"></li>
</div>
Note: I am aware that addSlide can be used but this defeats the purpose of using such libraries and frameworks.
Possbile solutions
Somehow listening to the carousel DOM item changes and attach events when change is detected.
Extending itemslide with a new method that calls carousel.nav.createEvents(); and slides.reload(); so users call it after they change the array of items, ie add items.
The text was updated successfully, but these errors were encountered:
Problem Most data binding libraries like knockout and Angular allow to dynamically add DOM elements. When this happens, itemslide does not attach events to the newly added items.
example
Note: I am aware that addSlide can be used but this defeats the purpose of using such libraries and frameworks.
Possbile solutions
carousel.nav.createEvents();
andslides.reload();
so users call it after they change the array of items, ie add items.The text was updated successfully, but these errors were encountered: