Chunbin Li
Aug 23, 2017 · 1 min read

I fixed it, I change the way that express is used to get the request

— app.get('/’, ….) => app.all(‘*’)

— rednerModuleFactory(… , { … , url : ‘/’}) => rednerModuleFactory(… , { … , url : req.originalUrl})

— — — — — — — — — — — —

app.all('*', function(req, res) {

renderModuleFactory(AppServerModuleNgFactory, {document: index, url: req.originalUrl})

.then(function(html) {

res.send(html);

}).catch( function(e) {

console.log(e)

});

});

)