-
Notifications
You must be signed in to change notification settings - Fork 12
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
Params in - out to the lazy load component #9
Comments
The hero-loader uses this https://github.com/herodevs/herodevs-packages/tree/master/projects/dynamic-service under the hood. So you can pass data into the component with the (init) callback of the hero-loader and call componentRef.next({YOUTDATA}); to pass the data. |
Edit : got it working with @input... still no successs with @output I wish there were a clear code example somewhere to look at for using hero-loader with @output parameter that gets changed and see the changes be reflected in the lazy-loaded component. |
You should uninstall hero-loader and use this one, so you have more control inside your code + you dont need the lazyModules inside your angular.json anymore: |
@aaronfrost How can we pass variables and events in out to the lazy load component?
@input() etc...
The text was updated successfully, but these errors were encountered: