Open zeiadhabbab opened 7 years ago
When adding ng-if on container div for ui-carousel, each time the div is displayed , ui-carousel will multiply the items inside of it.
this is the example of the code:
<div ng-if="Dashboard.flag"> <ui-carousel slides="Dashboard.slides" slides-to-show="3" slides-to-scroll="1" initial-slide="1" dots="true"> <carousel-item> <h3>{{ item + 1 }}</h3> </carousel-item> </ui-carousel> </div> <button ng-click="Dashboard.showhide()">Click me</button>
any idea how to fix this?
this is the firs time:
this is after hiding and showing div:
@zeiadhabbab Fixed on e3696ca
When adding ng-if on container div for ui-carousel, each time the div is displayed , ui-carousel will multiply the items inside of it.
this is the example of the code:
any idea how to fix this?
this is the firs time:![wpch4uhz1xlvwaaaabjru5erkjggg](https://cloud.githubusercontent.com/assets/1070930/24698211/7f6c6cca-19f8-11e7-8638-1044a6ecfb50.png)
this is after hiding and showing div:![dxacl8nr52wbaaaaaelftksuqmcc](https://cloud.githubusercontent.com/assets/1070930/24698231/92ca8a7c-19f8-11e7-958c-360fa72c2ee8.png)