F
F
friktor2014-04-30 12:31:49
Angular
friktor, 2014-04-30 12:31:49

How can i parse server json response from angular?

I made an application on sails and saw that most of it can be moved to the client side without any problems, for example, search, sorting, pagination, etc.
As an api, I want to first make a json response, which in the future will be parsed by Angular itself, but I ran into a small problem here , as a get request, it looks for a specific file. The crux of the question is how to get the json as a response and not as a file?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EugeneOZ, 2014-04-30
@friktor

This is just an example :) Write there any URL at which the server will return JSON, and that's it.
And I recommend to study ng-resource

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question