-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functions
Description
Bug, feature request, or proposal:
Bug
What is the expected behavior?
Should be able to define MatDialogRef result type in open method.
open<T, D = any, R = any>(componentOrTemplateRef: ComponentType<T> | TemplateRef<T>, config?: MatDialogConfig<D>): MatDialogRef<T, R>
What is the current behavior?
open<T, D = any> only allows setting componentOrTemplateRef component type and data input type.
open<T, D = any>(componentOrTemplateRef: ComponentType<T> | TemplateRef<T>, config?: MatDialogConfig<D>): MatDialogRef<T>
R is missing, therefore result is always any.
What are the steps to reproduce?
What is the use-case or motivation for changing an existing behavior?
Prevent from setting the type on every afterClosed() call.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
angular 5,
mat2
Is there anything else we should know?
Metadata
Metadata
Assignees
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functions