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
upgradeAdapter.upgradeNg1Component $element #10597
Comments
@AlexKhymenko You have to wait after the $onInit is called on your controller. Trying to access $element before that, will result in what you're seeing
|
Thank you will try!!! |
This does not work and it appears to be a bug when upgrading an ng1 component. Whereas a pure ng1 component has $element available in $onInit. An upgraded ng1 component does not have $element available in $onInit until after sometime. Logged #13912 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I'm submitting a ... (check one with "x")
Current behavior
When u try to upgrade directive that uses $element service and use it in Angular2 component the element will have NO children nodes.
Expected/desired behavior
When u try to upgrade component that uses $element service the element will have children nodes.
What is the expected behavior?
When u try to upgrade component that uses $element service the element will have children nodes.
What is the motivation / use case for changing the behavior?
To be available to update directives that uses $element service and use them in hybrid application
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: