1

I have a project in Angular Universal(Combined multiple applications) which contain subproject. After server side rendering my subprojects everything works clear, except of <app-root></app-root> which came form general module, but I want for every subproject have its <app-root></app-root>. Who faced this issue before.

georgeawg
  • 48,608
  • 13
  • 72
  • 95
Vahe Galstyan
  • 1,681
  • 1
  • 12
  • 25

1 Answers1

-1

Angular CLI supports multiple applications within one workspace.

To create another app you can use the following command:

ng generate application my-other-app

The new application will be generated inside projects/my-other-app.

Now we can serve, build etc. both the apps by passing the project name with the commands:

ng serve my-other-app

You can also create libraries, which is detailed in Create a library.

Niraj
  • 775
  • 7
  • 20
  • Thank you for response, but my problem that in generated submodules I can not use app-root for every submodule, I want to remind I used angular universal and code rendered in server side , that's my problem – Vahe Galstyan Apr 10 '19 at 07:55