How can I do this in Ionic without jquery?
var window_top = jQuery(window).scrollTop() + 56;
var div_top = jQuery('#sticky-anchor').offset().top;
How can I do this in Ionic without jquery?
var window_top = jQuery(window).scrollTop() + 56;
var div_top = jQuery('#sticky-anchor').offset().top;
You can use a reference to the
Content
:There are a lot of properties that you can use; one of the most importants is...
getContentDimensions()
: Returns the content and scroll elements’ dimensions.