Routing through multiple projects in a single angular app

If I understood the problem correctly. You are trying to run two different projects on the same port. But this is not possible, because you define a different workspace and method of operation when building your projects. For further information, I suggest you to review the related article.

If you don't want to deal with two different projects, I think it would be the right way. By combining all your projects under a single application, you can easily direct and load them with Lazy Loading method. For further information, I suggest you to review the related document.


Angular projects are to develop different applications with single codebase (monorepo concept).

One way to achieve it is using library. Build your second application as library(standard module with internal routing) and import it in another application as lib module and add it to routing of 1st application.

For 2nd application to run independently, create another application in projects folder and import library into AppModule.


your question got my attention. It is really interesting to have the parent-child project run simultaneously. However, angular is a single page application the only way to solve your problem I think is to structure projects as one by mixing them and importing child project components to app.module and make them run on different routing,

main app
---e2e
---src
-----app
------components
----------yourmainprojectcomponents
----------childprojectcomponents

Sorry if the hierarchy is not clear, comment if you have any quest!