Skip to content

Instantly share code, notes, and snippets.

View mayeco's full-sized avatar

Mario Young mayeco

  • Sevilla, Spain
View GitHub Profile
@mayeco
mayeco / gist:1149f88664c3621c1b53
Last active August 29, 2015 14:26 — forked from avalanche123/gist:981817
GitHub Emoji
:+1:
:-1:
:airplane:
:art:
:bear:
:beer:
:bike:
:bomb:
:book:
:bulb:
// 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() {