Create swipe up to open content

I am creating a simple app with the ionic framework, and I want to run a function on each of the swipe events or drag events. From the documentation, no example yet.

like this:

When user swipe up/drag up arrow, it will open it ( like open notifications smarthphone ).
Swipe down down or drag down, it will close it.

Can anyone help provide sample HTML & JS to listen to gesture event?
Thank you in advance