export entire angular 7 application as a module

129 Views Asked by At

There is a requirement in our project that we have to combine 2 or more sub angular applications into a container angular application through we want to make single page angular portal.

Advantages:

  1. we can maintain different code repo's
  2. Different teams can work on their own code repo and they can work independently.

so we decided to achieve this with spring Gateway where we want to do following process:

step 1: Create spring gateway application and configured routes

        - id: mf-app-one
          uri: http://localhost:4300/
          predicates:
          Path=/appone/**

setp 2: To create Main container angular application (running on : 8080 port ) setp 3: to create sub angular application (running on port 8081)

When ever we are hitting the sub application through container application we want to navigate through api gateway which will further hit the configured route and serve the sub application.

--> As of now creating the container application and configure the gateway part is done. --> Now the question is :

How to export entire sub application as a module so that my container application should think that it is loading a sub module through gateway not a real angular application.

Is there any possibility to do so? That will help us great!

enter image description here

0

There are 0 best solutions below