Order.query($scope.cam)
.$promise.then(function(data) {
window.location = ("http://www.example.com/platform/server/confirm.php?order=" + data[0].hash);
});
};
Is it possible that you have a null reference happening? Doors anything show up in the browser's console?
Steve
Yeah, I'd put a .catch on the end of that promise chain to see what the error is. My hypothesis is that Order.query is failing, but it is hard to say why. The problem with promises (and asyncs in general) is that unless you explicitly look for errors, you'll miss them.
Which is why I put an .catch (err) -> console.log err at least on all my promise chains. Or next err if we are on the node side.
e
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
Good news! Glad you figured it out.
--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/eKlQf-Z8GaU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.