Hi there,
I have been working on creating a UI for indicating a user’s preferences using local collide.js and ionic.tdcards.js. I wish to populate an array in $scope with the items the user has indicated a preference for. However, I am having difficulty. The problem is that the swipe direction does not seem to be registering at all when I test in the browser. There is no log to the console for any swipe and it seems as if ‘CardCtrl’ is redundant. I have tried replacing local collide.js and ionic.tdcards.js files with the hosted versions but this has not helped.
I could really do with some advice:
.controller('CardCtrl', function($scope, TDCardDelegate) {
//var userInterests = [];
//$scope.interests = userInterests;
$scope.cardSwipedLeft = function (index) {
console.log('LEFT SWIPE');
//nothing
$scope.addCard();
};
$scope.cardSwipedRight = function (index) {
console.log('RIGHT SWIPE');
//add to array
$scope.addCard();
};