在公共节点服务器上运行多个Angular Apps

时间:2017-02-07 10:38:39

标签: node.js angular express mean-stack

我是平均堆栈的新手。我想构建具有管理员和客户端的应用程序。所以我在我的节点中构建了两个角度2应用程序。但我无法基于路由器呈现管理员应用和客户端应用。例如,当路由器是/我的客户端应用程序应该呈现和on / admin我的管理应用程序应该呈现。

请帮我构建我的目录解决我的问题。我正在使用express for Routing。

1 个答案:

答案 0 :(得分:0)

You have to assign different port to your both apps.

ng serve --port 4210 --live-reload-port 4950

Open your second project and fire above command.

See : Click here