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
Add info about entryComponents in Dialog documentation #2686
P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfuldocsThis issue is related to documentationin progressThis issue is currently in progress
It should be easy to follow the dialog overview sample and get it up and running using a new app created with Angular CLI.
What is the current behavior?
I was struggling with getting the Dialog component to work without showing errors in the console. I finally solved it by adding my DialogContentComponent to the module’s entryComponents. It would be helpful if there was a section in the documentation if this is a requirement.
I can submit a PR for improved documentation. However, I am afraid my knowledge regarding why you must place the content dialog component in entryComponents is not sufficient to be able to describe the reasons for this requirement correctly.
The Plunkr sample of the Dialog Overview places the content dialog component in the module’s bootstrap instead. I was not able to get this to work.
P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfuldocsThis issue is related to documentationin progressThis issue is currently in progress
Activity
coder925 commentedon Jan 18, 2017
I see that the requirement of entryComponents is mentioned in the README of the Dialog. So my proposal is merely to also include this information on https://material.angular.io/components/component/dialog . Thanks!
jelbourn commentedon Jan 25, 2017
Yep, looks like that information was accidentally lost in the transition from readme to overview.
rosslavery commentedon Feb 16, 2017
What also should be made clear is whether it should be added to:
entryComponentsof the module the component belongs toentryComponentsof the module that contains the actual call todialog.open()- as this could be a different module than the above-mentioned moduleentryComponentsof the root "App" moduleI'm actually still not clear myself on which it is to be honest.
docs(dialog): Add note about AOT compilation.
docs(dialog): Add note about AOT compilation.
docs(dialog): Add note about AOT compilation. (#3272)
sync from upstream (#1)
angular-automatic-lock-bot commentedon Sep 5, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.