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
Opening an MdDialog with a TemplateRef that uses md-dialog-close throws "no provider for MdDialogRef" #5412
Provide MdDialogRef even when we pass a TemplateRef.
What is the current behaviour?
With the current setup if we pass a TemplateRef to MdDialog, there is no way to use md-dialog-close directive as it throws no provider for MdDialogRef as it requires it.
What is the expected behaviour?
It would be great if it works with a TemplateRef but if that's not possible, then could you please add a brief warning to the docs?
This is a known issue. It's because we can't set a custom injector on a template ref (since it's already instantiated). I've discussed a potential solution with @jelbourn, but haven't gotten around to implementing it yet.
Reacted by alex321, Richard Johnson, Daniel, Chris Curnow, dreamer99x, Kevin Dorion and Maxime
Activity
crisbeto commentedon Jun 29, 2017
This is a known issue. It's because we can't set a custom injector on a template ref (since it's already instantiated). I've discussed a potential solution with @jelbourn, but haven't gotten around to implementing it yet.
christophechevalier commentedon Sep 26, 2017
Hi,
Any news on that?
Thanks :)
pitops commentedon Oct 28, 2017
Hello any news on this?
feat(dialog): support using dialog content directives with template d…
feat(dialog): support using dialog content directives with template d…
feat(dialog): support using dialog content directives with template d…
feat(dialog): support using dialog content directives with template d…
feat(dialog): support using dialog content directives with template d…
angular-automatic-lock-bot commentedon Sep 8, 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.