I have a big application and I applied some changes to make it Hybrid.
It will work fine if the old bundle of Angularjs app loads first on time. (it is a 4-5MB bundle) I was checking the samples on the net and most of them just say the same. for example:
https://github.com/manfredsteyer/ngUpgrade-lite-sample/blob/master/src/index.html
this will work because it is a small app and he is just importing all the modules and components manually and it is not possible in my app with more than 200 component.
So what is the best approach to load the bundle of Angularjs app before anything in Angular hybrid app?
I was bundling the old app with Webpack 4 and also tried to import it in main.ts
file and also tried the script
in angular.json and no luck it gives me the error:
Uncaught Error: [$injector:nomod] Module 'app' is not available!
which I suppose it must be because the angularjs is not loaded, before the new angular 7 bootstrap the application