Sander,

Thanks for the reply.

First, I want to re-explain that we cannot sync on a single angular 
version. Our website is basically a single runtime platform that lazy-loads 
"plugin code". The plugin code must therefore be on the same version of 
Angular-- which creates the problem of having a monolithic application.

I have previously looked at NX, but have serious concerns about how to 
manage a monorepo beyond simply the build infrastructure. For example, how 
can our enterprise wide "git" infrastructure handle a monorepo. It is my 
understanding that git doesn't have good monorepo support.

Finally, today I tried to test this all out, but am definitely running into 
problems. I used the Angular CLI to create two projects and built them. I 
then attempted to take those /dist/** files and put them together into a 
single webpage. Needless to say I'm still working on it but haven't had the 
result I expected. I wonder if these Angular CLI support files are not 
compatible with each other (runtime.js, vendor.js, etc). (Yes, I removed 
zone.js from both).

I'll reply back if I make any progress.


On Friday, June 7, 2019 at 1:41:13 AM UTC-4, Sander Elias wrote:
>
> Hi Paitum,
>
> Yes, you can load different angular versions in 1 page, but you need to 
> take care of zonejs. There can be only 1 zonejs.
>
> Going without zonejs is also a possibility, but you need to be at least on 
> 7, to make that workable. 
>
> Yes, you can run angular elements in another angular app, but you have no 
> access to its services.
>
> I really would recommend going to a monorepo, and sync on a single angular 
> version. Version 8 is out, and in version 9 ivy will be the default 
> renderer. 
>
> Have a look at a tool like NX, from nrwl. That will enable you to manage a 
> monorepo, while it makes it a lot easier to keep things in sync.
>
> Regards
> Sander
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/9a0522c5-bc67-47cf-b8a4-98c369b4ee0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to