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
Your solution for popups is way to complicated. Had the same issue and this post (not from me) helped me making it much simpler. Essentially use ComponentFactoryResolver and put all potetial popups in your module defintion under
entryComponents:[
PopupComp
]
and you can throw away the one module per popup.
Bug, feature request, or proposal:
proposal
What is the expected behavior?
easy modal popups
What is the current behavior?
requires module for each popup
Your solution for popups is way to complicated. Had the same issue and this post (not from me) helped me making it much simpler. Essentially use ComponentFactoryResolver and put all potetial popups in your module defintion under
entryComponents:[
PopupComp
]
and you can throw away the one module per popup.
https://blog.thecodecampus.de/angular-2-dynamically-render-components/
The text was updated successfully, but these errors were encountered: