Is it possible to run angular2 with node js without the given code in nodejs? What if i don't want to use dist folder in nodejs?
app.use('/', express.static('dist'));
app.get('/', function(req, res) {
res.sendFile(path.join(__dirname + '/index.html'));
});