How to redirect to custom page when the user drag from the last slide.

I’m using ionic slider.
I go on slide after slide. And then I reach last slide. And I will go on the next slide even there is no more slide. At that time, I want to redirect to another page. How should I do?