javascript - scrolltofixed bottom with angular ng-repeat -
i using angular-scrolltofixed plugin , works great.
the problem starts when try put limit options bottom bar
$('.footer').scrolltofixed( { bottom: 0, limit: $('.footer').offset().top } );
the 'limit' variable being calculated before page being rendered (ng-repeat etc) , result limit attribute not right.
try this, script loads after entire document loads
<html> <head> </head> <body> <!-- write code --> <script> //add angualar js script here </script> </body> </html>
Comments
Post a Comment