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.
Asked
Active
Viewed 451 times
1

georgeawg
- 48,608
- 13
- 72
- 95

Vahe Galstyan
- 1,681
- 1
- 12
- 25
-
Did u get any solution ? – Shashank Vivek Jul 07 '19 at 08:31
-
I created One library an import that library via package json in all projects, that was solution for my problem, but steel I can not create sub projects. – Vahe Galstyan Jul 09 '19 at 07:15
-
1Ok, I am looking for something like this. I'll post an answer, if I find any. Thanks – Shashank Vivek Jul 09 '19 at 08:30
1 Answers
-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