I'm following a tutorial on how to set up authentication with nodejs and passport (http://scotch.io/tutorials/javascript/easy-node-authentication-setup-and-local)
The tutorial has rendering templates with ejs and passing in flash info and error messages.
Instead of this, I like to use angularjs. The part I'm having trouble with is getting the flash messages to client side angular. I know how to use templates and send variables, but what in angular replaces the "req.flash('Message')" in the below code?
app.get('/signup', function(req, res) {
res.render('signup.ejs', { message: req.flash('signupMessage') });
});
What is the Equivalent or any other method to show our messages as like req.flash from nodejs to angular