Skip to content

Instantly share code, notes, and snippets.

View RemiAWE's full-sized avatar

Rémi Chanaud RemiAWE

View GitHub Profile
// An example controller binded to the form
function FormCntl($scope, $compile) {
// Consider using FosJsRouting bundle, if you want to use a Symfony2 route
$scope.formUrl = "http://url-to-fetch-my-form";
// Data from the form will be binded here
$scope.data = {};
// Method called when submitting the form
$scope.submit = function() {