Quick question, how we can pass to angular-universal HTML components or to the main app index.html variables from expressjs, like available from expressjs to ejs or pug?
app.get('*', (req, res) => {
res.render('index', { req, messsage: 'This is your message' });
}
Ejs can get variable from expressjs like this:
<h1><%= message %></h1>
Pug can get variable from expressjs like this:
h1= message
We need to display a message from expressjs when the pages load or reloads into the view-source not in the shadow dom or DOM or as "inspect" on chrome. Must be on the view-source in the render HTML source file.
We using angular 11 SSR universal with expressjs.
Any ideas or is impossible?