continue work on angular form
This commit is contained in:
@@ -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;
|
||||
}
|
||||
]);
|
||||
|
Reference in New Issue
Block a user