Your class is using an init() function to check if there is a header, subheader, ...
In my case, I only want to show a subheader when I click on a button (to see a searchBar).
By default, the subheader is not shown, and I have in my template a ng-class :
So, I just patched your directive with :
$element.bind('scroll', function (e) {
if (isNavBarTransitioning) {
return;
}
init(); //added
...
Now, it's working because the has-subheader is present on the ion-content before scrolling ;-)
I'm not sure this is very proper to do like that, but it's working.
So, fill free to use it... or not :)
You other directive ionic-filter-bar is good, but I can use it because I have other filters button on my header.
Your class is using an init() function to check if there is a header, subheader, ... In my case, I only want to show a subheader when I click on a button (to see a searchBar). By default, the subheader is not shown, and I have in my template a ng-class :