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

How do i load <ax-lazy-element> dynamically using Angular dynamic component loader? #117

Open
rameezrami opened this issue Apr 17, 2022 · 1 comment

Comments

@rameezrami
Copy link

I'm trying to build a global sandbox to launch MiroApps which has different set of input data values. So i have built a UI screen for user to input his own "tag", "Js-url", @input values"(dynamic reactive form).

<ax-lazy-element
    *axLazyElementDynamic=" tag; url: url; module: false;"
    [someOtherInput]="myinput1"
    [SomeDiffrentInput]="myinput2"
    [config]="config"
    (action)="handleAction($event)"
  ></ax-lazy-element>

Now the only Problem is i need to hardcode below which could be different for different MicroAPps

[someOtherInput]="myinput1"
[SomeDiffrentInput]="myinput2"
[config]="config"

Usually this is solved via Angular dynamic components. but i can't find any component exported for <ax-lazy-element>

So my question here is, How do i load <ax-lazy-element> dynamically using Angular dynamic component loader? (https://angular.io/guide/dynamic-component-loader)

@rameezrami
Copy link
Author

Any update? 👀

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