2016-11-06 17 views
0

我使用的是angular-scrolltofixed插件 ,它的效果很好。帶角度ng-repeat的scrolltofixed底部

的問題,當我試圖把限制選項底部欄

$('.footer').scrollToFixed({ bottom: 0, limit: $('.footer').offset().top }); 

的「限價」變量被計算之前,所有的頁面被完全呈現(NG-重複等),作爲啓動結果極限屬性是不正確的。

回答

0

試試這個,整個文件加載後腳本加載

<html> 
    <head> </head> 
    <body> 
    <!-- 
     write all the code her 
    --> 
     <script> 
     //Add your angualar js script here 
     </script> 
    </body> 

</html>