You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Property binding[] is not working when we call angular element from parent project #50
i have place it in the assests of route application after build
when i try to send data from parent to element it is failing if i am using property binding. example below
<element-setPassword id="element-set-password" *axLazyElement="elementUrl" [usernamevalue]="name"> --> failing
<element-setPassword id="element-set-password" *axLazyElement="elementUrl" usernamevalue="subham"> --> working
Hi @subham-subhasis@tomastrajan
I can confirm I have encountered this issue as well. I previously had some issues with property binding and custom elements but always managed to find workarounds.
I think I may have found a one-line fix for this, will try to submit a PR today.
@MagicCurlyHair I believe I encountered the same issue. When passing as static attribute, the custom element (created by angular elements) can receive it as input, when passing as property binding, the custom element get undefined input value. Can I use your patch without having to upgrade to Angular 10?
@FinalVersion sure, it's actually build with Angular 9. The only reason for major version bump is that the change is potentially breaking but that shouldn't be the problem for the intended use case. Please leave a comment in the PR whether it fixes your issue.
Activity
tomastrajan commentedon May 14, 2020
@subham-subhasis hard to say what is wrong, such use case is up and running in showcase and also in many projects I was working on professionaly.
My best guess is that it is a problem with how the element was implemented.
Wish you good luck!
gshokanov commentedon May 18, 2020
Hi @subham-subhasis @tomastrajan
I can confirm I have encountered this issue as well. I previously had some issues with property binding and custom elements but always managed to find workarounds.
I think I may have found a one-line fix for this, will try to submit a PR today.
tomastrajan commentedon May 19, 2020
@MagicCurlyHair thx for the PR, @subham-subhasis please, see the PR for details.
subham-subhasis commentedon May 19, 2020
I have used attr. attribute what I want to send , it worked. _ know its a silly thing & tried all the things to fix that.
Thanks everyone for sharing your time to fix this.
FinalVersion commentedon Jun 15, 2020
@MagicCurlyHair I believe I encountered the same issue. When passing as static attribute, the custom element (created by angular elements) can receive it as input, when passing as property binding, the custom element get undefined input value. Can I use your patch without having to upgrade to Angular 10?
gshokanov commentedon Jun 15, 2020
@FinalVersion sure, it's actually build with Angular 9. The only reason for major version bump is that the change is potentially breaking but that shouldn't be the problem for the intended use case. Please leave a comment in the PR whether it fixes your issue.
tomastrajan commentedon Jun 28, 2020
@FinalVersion the version 10.0.0 for Angular 10 was released just now, please feel free to try it in your project!