I've got the user data from ExpressJS through NodeJS as following:
app.js
app.get('/user', function(req, res) {
res.render('users', { title: 'Foo', user: req.user });
});
users.ejs
<%= user %>
I need the user
data from user.ejs
above to an angularjs controller, so I could display that on other named views.
Could somebody help me with it?