continue work on angular form

This commit is contained in:
Michael Q Larson
2015-01-05 20:09:23 -08:00
parent 7a47df4e74
commit be22449d25
3 changed files with 18 additions and 12 deletions

View File

@@ -43,9 +43,14 @@ $(document).ready(function() {
});
var profileValidation = angular.module('profileValidation',[]);
profileValidation.controller('profileValidationController', ['$scope',
function($scope) {
$scope.twitterHandle = '@yournamehere';
$scope.user.name = req.user.name;
profileValidation.controller('profileValidationController', ['$scope', '$http',
function($scope, $http) {
$http.get('/account').success(function(data) {
console.log('============');
console.log(data);
console.log('============');
$scope.user = data.user;
});
//$scope.user = user;
}
]);