Sha256: b2e332bc221421527d7d7623c432b0b753693b4cd3de97f2155806dbffde4104
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
Sprangular.controller 'CheckoutReviewCtrl', ($scope, $location, Cart, Checkout) -> $scope.order = Cart.current $scope.$watch 'order.state', (state) -> $scope.active = (state == 'confirm') $scope.placeOrder = -> $scope.processing = true if $scope.order.isInvalid() $scope.processing = false return Checkout.complete() .then (order) -> if order.errors && Object.keys(orders.errors).length > 0 $scope.processing = false else $location.path('/checkout/complete') , -> $scope.processing = false
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sprangular-0.1.0 | app/assets/javascripts/sprangular/controllers/checkout/review.coffee |