Skip to content

Dialog Component Instance #4815

@Kyderman

Description

@Kyderman

Bug, feature request, or proposal:

In Beta 6 (maybe 4 / 5), I cant seem to access anything from dialogRef.componentInstance.

What is the expected behavior?

e.g dialogRef.componentInstance.isSaved would return me the value of isSaved from the component.

What is the current behavior?

componentInstance is null, there is no way to access the inner variables of the dialog.

What are the steps to reproduce?

try using componentInstance after close

What is the use-case or motivation for changing an existing behavior?

I want to know the certain state of a dialog after close.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Material Beta 6, Angular 4

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions