Issue
When I subscribe to angular mat-dialog, to I need to unsubscribe it after close the dialog or in other any place? Or when the dialog is destroyed - the GC collect also its keyboard events subsribers?
dialogRef.keydownEvents().subscribe(event => {
// do something...
});
Solution
No you needn't. This events are smart in Material
and do unsubscribe for you.
Answered By - Tony Marko
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.