I\'ve been through many Angular-express seeds and kind of worked out how they work. The problem I am having is: 1). I would like to use ejs-locals for temp
You can try something like this,
const path = require("path");
/* For serving static HTML files */
app.use(function(req, res, next) {
res.sendFile(path.resolve(__dirname + '/dist/index.html'));
});
/* For ejs, jade/pug engines */
app.use(function(req, res, next) {
res.render(path.join(__dirname, '/dist/index.pug'));
});