How to use HTTPServer and Angular2 on the same port?

0 views
Skip to first unread message

Lu Liang

unread,
Jul 29, 2016, 8:19:01 AM7/29/16
to Angular2
I'm doing a dashboard project. I choose Angular2 as my front end framework.
I need to read data from Spanner. So I use C++ to get the data and use typescript to read the data and show them on website.

Should I separate the C++ part and Angular2 on two port? 
I cannot run the Angular with HTTPServer.. Because I use RouteConfig in angular2. The typescript code managers the path but not HTTPServer.

Someone told me separate the API and typescript on two port is not graceful. So who can tell me what can I do in this situation?

Thanks!
Reply all
Reply to author
Forward
0 new messages