I\'m trying to make a simple console.log() from this $scope:
console.log()
Because your JS code
console.log($scope.customer);
run when you init the CustomerController controller, at that time $scope.customer has no value and it return undefined.