0

I would like to have a web app with Angular in Frontend and Symfony in Backend. I separated this into 2 single projects and now I want to let them communicate via REST.

Now here's the point I'm struggling a little. First of all, is the project separation the right approach? Also, I'm confused with building a REST-Service with the ngResource-factory in Angular. Can someone explain this to me, how to create a simple GET-Request (no params etc and just how to use the factory. Dependencies aren't a problem)? The tutorial on AngularJS doesn't really help. Do I need to create a JSON-File as well?

By the way, I'm new to these 2 frameworks.

Thanks in advance!

2
  • As Sample, you can take a look at this project as frontend, and this as backend of the same app Commented Dec 21, 2015 at 6:14
  • Thanks for your Support. I got it working after I read the tutorial again. There was a misunderstanding in the code! Commented Dec 29, 2015 at 12:03

1 Answer 1

1

Disclaimer: I'm the author of API Platform

Take a look at API Platform. It's a solution to create REST API using Symfony (full stack).

The official tutorial explains how to create a REST API in a first project then an Angular client (using Restangular) in another project.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.