使用ng-repeat生成的Getuikit uk-slideshow不显示图像

时间:2016-04-16 13:49:47

标签: css angularjs html5 angularjs-directive getuikit

嘿伙计我有uikit幻灯片+ angularjs的问题。当我使用ng-repeat尝试将所有图像带到uk-slideshow时,图像不会显示。是否有人有类似的问题?当我从div中删除ng-repeat标签时,图像会回来。我现在很困惑。

<div class="uk-width-1-2" ng-repeat="property in properties">
    <div class="uk-slidenav-position" data-uk-slideshow="{animation: 'scroll'}">
        <ul class="uk-slideshow">
           <li ng-if="property.pictures.length > 0" ng-repeat="pp in property.pictures">
               <img src="../img/2_wide.jpg" />
           </li>
        </ul>
        <a href="" class="uk-slidenav uk-slidenav-contrast uk-slidenav-previous" data-uk-slideshow-item="previous"></a>
        <a href="" class="uk-slidenav uk-slidenav-contrast uk-slidenav-next" data-uk-slideshow-item="next"></a>
   </div>
</div>

1 个答案:

答案 0 :(得分:0)

只需添加“ data-uk-check-display”

<div class="uk-slidenav-position" data-uk-slideshow="{animation: 'scroll'}" data-uk-check-display>