I’m using a modified version of ion-swipe-cards and discovered the code doesn’t work with Beta.14. The issue is with the upgrade to angular 1.3, which no longer allows a return value from a directive controller function, see “Return” in directive’s controllers no longer works
Here is the offending piece of code, but I’m not sure how to rewrite it to work with angular 1.3. The full source can be found here (github)
.directive('swipeCards', ['$rootScope', function($rootScope) {
return {
restrict: 'EA',
template: '<div class="swipe-cards" ng-transclude></div>',
replace: true,
transclude: true,
scope: {},
controller: function($scope, $element) {
var swipeController = new SwipeableCardController({
});
$rootScope.$on('swipeCard.pop', function(isAnimated) {
swipeController.popCard(isAnimated);
});
return swipeController;
}
}
}])