Attempting to make a http call to weather underground api loosely based off of Air Lerner's Angular Chrome App<http://www.ng-newsletter.com/posts/chrome-apps-on-angular.html> .
This is my code <https://gist.github.com/telagraphic/9105662> which contains two calls to the same api call, one using $http with CORS http header configuration and another call using jsonp that receives the json payload but the view won't display it. I've read that CORS is the preferably approach over JSONP, but I'm a little clueless as to why I'm getting the No 'Access-Control-Allow-Origin' as I've added the proper http header code in my angular config code. My secondary approach with JSONP will console.log the response object but won't display on my view. Any assistance that will aid my comprehension of these approaches is greatly appreciated. I think my local host server doesn't accept the response from weather ground for my http call due to missing the 'Access-Control-Allow-Origin'. No idea of what do if that is the case... -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
