Hi vin, You can provide "JSONP" as method $resource options <https://docs.angularjs.org/api/ngResource/service/$resource#usage>. Remember that $resource is a layer upon $http service, so just use this method value and it should work just like $http service. For $http JSONP use, please follow this link <https://docs.angularjs.org/api/ng/service/$http#example>.
Cheers, Charly. Le jeudi 17 juillet 2014 08:16:42 UTC+2, vin a écrit : > > Hello all, > > I am developing an angularjs app which calls a nodejs hapi API for data. > I am facing CORS issue and looking for an example which shows how to use > ngresource and JSONP > I am very new to angularjs. > > Thanks in advance > -- 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/d/optout.
