snapjay / ngCart

Really simple shopping cart for AngularJS
http://ngcart.snapjay.com
380 stars 236 forks source link

checkout 'log' issue with promise #46

Open CyrilSabbagh opened 8 years ago

CyrilSabbagh commented 8 years ago

There is an issue with the checkout when in log mode. It throws an error saying that $scope.checkout(...).success is not a function! I found the issue while looking at your code. You are using .success and .error function on the $q promise. Instead you should be using the .then and .catch :) I solved it and submitted my PR. Hope this helps. Cheers