-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use Modal-hack in hybrid ng1/ng2 application #1056
Comments
I will try another hack today, so most probably I will drop this viewContainerRef root dep |
+1 Please try another hack, I still get the error: Cannot read property 'parentInjector' of undefined |
Hi, thanks for looking at this. Maybe I'm just misunderstanding how I am supposed to get this working in hybrid-mode. |
Give me a sample repo to reproduce, and I will drop a solution |
Hi, everyone. As you wish, I added the temporary repository for testing this defect. Please notify me, if you will have some results about it. |
Awesome thanks! |
cloning, it is time to fix this once and for all ;) |
all possible hack points are empty for ngUpgrade |
It's very bad news, do anyone have another ideas how to fix that and close the issue? |
pss I am testing fix for it :) |
this is how fix will looks like |
Great! |
We are using ng-upgrade while migrating our application from Angular 1->2.
We're trying to use Modals in our ng2 components, but the required hack does not work in this context, since there is no root-level angular 2 component at the moment.
Tried adding a downgraded AppRoot-component in in the main ng1-template, but it is never added to
applicationRef.components
so it fails with Cannot read property 'instance' of undefined in the ComponentsHelperIs there any way around this for a hybrid app?
The text was updated successfully, but these errors were encountered: