Skip to content
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

pass property to *azLazyElementDynamic #54

Closed
TheILPlace opened this issue Jun 11, 2020 · 0 comments
Closed

pass property to *azLazyElementDynamic #54

TheILPlace opened this issue Jun 11, 2020 · 0 comments

Comments

@TheILPlace
Copy link

TheILPlace commented Jun 11, 2020

<ax-lazy-element *axLazyElementDynamic="elementName, url: elementUrl; module: true;"
text2="{{elementText}}"
(send)="onSendReceived($event)"
(navigate)="onNavigate($event)">

i am trying to pass component property : elementText to the custom element.
i can pass strings : text2="my text"
but cannot manage to pass the "elementText" variable.
i've tried:
[text2]="elementText"
text2="{{elementText}}"

but my custom component gets 'null' as the value.

using *axLazyElement the input variables gets passed correctly to the same custom element i've used in the question above.

i've read a similar problem with #50

i've tried the 10-alpha version, still not working. with disabling ivy - not working.

then i've checked again, and it seems that the value was not available during the
connectedCallback event in the web-component. only afterwards.

so i've wrapped the code inside my connectedCallback function with setTimeout and now it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant