Home How do I hide a div in angular based upon document height?
 Forgive me if this is elsewhere... I came into a project abandoned half-way through. I've not worked in angular before and need to hide/show a "back to top" button dependent upon whether the document is taller than the viewport. I've tried several different approaches and cannot get anything to work successfully. This is my latest attempt: $(document).ready(function() { if ($(document).height() > $(window).height()) { console.log("document height is greater");$('#arrowUp').show(); } else { console.log("window height is lesser"); \$('#arrowUp').show(); } });  Thanks in advance