start using angular on form

This commit is contained in:
Michael Q Larson
2015-01-05 19:01:58 -08:00
parent 41abdae46f
commit 7a47df4e74
4 changed files with 24 additions and 15 deletions

View File

@@ -42,3 +42,10 @@ $(document).ready(function() {
});
});
var profileValidation = angular.module('profileValidation',[]);
profileValidation.controller('profileValidationController', ['$scope',
function($scope) {
$scope.twitterHandle = '@yournamehere';
$scope.user.name = req.user.name;
}
]);