-
Notifications
You must be signed in to change notification settings - Fork 567
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
add a ref to access nativeElement #2007
Comments
not sure if that possible with document.querySelector(`#${field.id}`) |
but what I mean is to access the element in your component file. not in DOM tree example:
|
Currently, there is no straight way to implement this feature, sorry about that 🙏! Blocked by: |
I don't talk about dynamically rendering the template, I talk about a feature already supported by Angular https://itnext.io/working-with-angular-5-template-reference-variable-e5aa59fb9af |
I know exactly what you were talking about 😃, we create field components dynamically using ComponentFactoryResolver which AFAIK angular doesn't recognize by |
Is there a solution available for this now? I need to reference some of my fields (ng-select, ionic inputs...) in a reusable subform... |
The text was updated successfully, but these errors were encountered: