javascript,angularjs,angularjs-ng-include,angularjs-ng-touch
Why don't you simply check if the element exist when the $includeContentLoaded is triggered $rootScope.$on('$includeContentLoaded', function(event) { if($(element_selector).length){ $swipe.bind($(element_selector), {'move': dragMoveHandler}); } }); or if you want to avoid injecting the $rootScope and using angular events, why don't you simply do this in a simple vanilla JavaScript way setTimeout(function check_if_element_exist(){...
Well I didn't find anything simple, so here is one workaround and one semi-suppression, both rely on $timeout, but given you rely on human interaction I think we're ok. Semi-Suppression: we'll want to ignore clicks this digest cycle and return to listen to the event next digest cycle. $scope.leftSwipe =...
angularjs,ipad,touch,angularjs-ng-click,angularjs-ng-touch
The problem here was the iScroll blocking my touch events. Passing {click: true} in as the options when initiating the iScroll fixed the problem.