angularjs - how get a list from google endpoint with angular $resource? -


I'm trying to make a list call with a google endpoint with $ resource, before I use http But the $ resource seems to be more pronounced with just one filling for the combobox.

My service. JS looks like this:

  Provincial Services '(' Provincia ', [' $ resource ', function ($ resource) {return $ resource (' https://local.appspot.com/_ah/api/provinciaendpoint/v1/:provinciaId ', {}, {query} : {Method: 'GET', Params: {provinciaId: 'provincia'}}}});}]);   

And under my control, I call the list from the following line:

  $ scope.provincias = Provincia.query ();    

to interact with an endpoint API via the client's library Read the link If you're angular with endpoints, then there is nothing - it's a great resource.

You can use $ http to kill your Endpoint API as a RESET service, but it requires some careful use of routes and HTTP actions. , And OAuth is a bit more difficult, if you think you want to do this later.

I'm not really sure what your fault is with the $ resource. Can you update your question?

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -