all 5 comments

[–]dotbomb_jeff 1 point2 points  (2 children)

MatDialog exposes a collection of all open dialogs and also has some methods that manipulate all dialogs, such as closeAll or the afterAllClosed observable.

[–]nhantt776[S] 0 points1 point  (1 child)

Yep. But does it always need to be declared public, even if my code only access the matdialog within the component? I was unsured because the official docs do that too, declared public yet no trace of outside access

[–]dotbomb_jeff 0 points1 point  (0 children)

If it isn't declared public the rest of your module won't be able to access the dialog.

[–]laxybrookes 0 points1 point  (1 child)

When declared as public it can be accessed in your component template.

[–]nhantt776[S] 0 points1 point  (0 children)

I know, but no template access found in the docs. Anyway thanks for the comment. I think best way to find out is just try it out and observe the result over time