Drag content back with same behavior as slide menu?


#1

Hello,

i am trying to find the way how to drag content and go back in history with the same behavior as slide menu where u see what content is revealing when dragging. Maybe somehow using slide-box? Or somehow enhance following directive?

.directive('dragBack', function($ionicGesture, $state) { 
	return {
		restrict : 'EAC',
		link : function(scope, elem, attr) {
		 $ionicGesture.on('swipe', function(event) {
				// alert('Swiped!');
			  event.preventDefault();
			  window.history.back();
			}, elem);		  
		}
	}  
})