title: NodeJS and Angular 2
body: <p>I want to create app with nodeJS and angular2 as client side framework. For example I have routes:</p>
  
  <pre><code>app.get('/', function(req, res){
      res.render('home');
  });
  app.get('/about', function(req, res){
      res.render('about');
  });
  app.get('/dash', function(req, res){
      res.sendFile(__dirname + 'path-to-angular2-index-file.html');
  });
  app.listen(3000);
  </code></pre>
  
  <p>However Angular2 tutorial doesn't covered such and agular-cli comes with their own method: <a href="https://github.com/angular/angular-cli#generating-and-serving-an-angular2-project-via-a-development-server" rel="nofollow">Generating and serving an Angular2 project via a development server</a></p>
  
  <p>I have following folder structure:</p>
  
  <pre><code>NodeJSWebsite
  --node_modules
  --public
  --|--img
  --|--css
  --|--js
  --|--templates
  ----|--home.hbs
  ----|--about.hbs
  --server.js
  --package.json
  </code></pre>
  
  <p>Is there a good &amp; simple way to compile/build angular2 application and render html file so I am able to use with my route?</p>