Quantcast
Channel: labs @ Qandidate.com
Viewing all articles
Browse latest Browse all 33

Handling AngularJS POST requests in Symfony

$
0
0

At Qandidate.com we started using AngularJS last year and I have to say it was love at first sight! Two-way databinding, testability, dependency injection, server communication...awesome!

Did I say server communication? We use Symfony 2 (which is awesome too) for our back end API’s. Unfortunately AngularJS and Symfony do not speak the same language out-of-the-box.

In this post I will show you how we automatically decode JSON requests so we can use it with Symfony's Request object using our symfony-json-request-transformer library (or class actually).

∞ labs @ Qandidate.com Permalink


Viewing all articles
Browse latest Browse all 33

Trending Articles