How to get object passed into view from Node for use in Angular?

node

app.get('/profile', function(req, res) {
    res.render('profile.ejs', { authUser : req.user });
});

angular

function Ctrl($scope) {
    $scope.user = authUser; // from the view
}

I need access to the authUser in the Angular code. I'm familiar with using $http.get to get data from a res.json(...), but am not sure how to do it in this scenario.

res.render is only sending the authUser to the EJS view engine, not back to the client. If you only need to display the user info then you can add something like <%= authUser.displayName %> to profile.ejs.