Angular 2 RC with express server instead of Lite server

I would like to create a one-page application with the latest angular 2 rc and express server. I don't know how to bind both using bower, gulp and webpack. There is some starter pack, but it cannot get the expected one. Please guide me

+1
source share
1 answer

The question is really broad, but here github starter projects connect with express and rc. 1: Angular 2 start project with express

The server identifies index.html from the string app.use( express.static(__dirname + '/client' ) ); . This means finding a file named index.html in the client directory.

You can add additional backend paths in routes.js. For the client side, for example, for page navigation, etc., I suggest you take a look at the angular2 routing tutorial / documentation: http://angular.io/docs/ts/latest/tutorial/toh-pt5.html

+1
source

All Articles