Well I totally missed that! Yes I knew a little about promises, but didn't see where having two return statements fit in. In my code I'm returning the $http.post, (return $http) which it seems to be the promise object itself, and returning the response which contains the data in .the .then or.catch blocks). I didn't see that documented in angular until I just now saw this: https://docs.angularjs.org/api/ng/service/$q.
Thank you, James -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
