Disable ion-refresher


#1

I’m using ion-refresher to load previous messages in a chat thread. When the user get’s to the the beginning of the chat thread I’d like to be able to disable the pull to refresh functionality. An ng-if on the ion-refresher does not work. It only hides the directive but does not disable it’s functionality.

Is there a solid way to disable this directive based on an expression?


#2

strange… i thought if you remove the directive from your html markup with ngIf —> all functionalities get removed.

In other cases check in your “refresh-function” if there are not more data to load --> and return doing nothing (trigger the success event)