Hooking up Angular to Profile.jade

This commit is contained in:
terakilobyte
2015-01-06 00:52:30 -05:00
parent be22449d25
commit 41a1bc37c3
4 changed files with 25 additions and 15 deletions

View File

@@ -45,12 +45,9 @@ $(document).ready(function() {
var profileValidation = angular.module('profileValidation',[]);
profileValidation.controller('profileValidationController', ['$scope', '$http',
function($scope, $http) {
$http.get('/account').success(function(data) {
console.log('============');
console.log(data);
console.log('============');
$http.get('/account/api').success(function(data) {
$scope.user = data.user;
console.log($scope.user);
});
//$scope.user = user;
}
]);