add swipe for angularjs.