Skip to content

Instantly share code, notes, and snippets.

@jmvanderpol
jmvanderpol / app.js
Created September 11, 2012 03:31 — forked from twilson63/app.js
AngularJS Contact Form Example
function ContactCtrl($scope, $http) {
$scope.success = false;
$scope.httpError = false;
$scope.send = function() {
var job = { job: { klass: 'msg', args: [$scope.msg]}};
$http.post('/contact',job).
success(function(data){
$scope.success = true;
$scope.msg = {};