1
Je voudrais cacher mon MdDialog
au lieu de le fermer (ne pas avoir à recréer des ressources coûteuses à chaque fois)MdDialog - possible de se cacher au lieu de fermer
Est-il possible de se cacher juste?
Voilà comment je l'ouvre:
openLocationPicker() {
const dialogParams: UserPickLocationDialogParams = {
locationName: this.locationName,
geoLocationString: this.latitudeLongitudeControl.nativeElement.value
}
let dialogRef = this.dialog.open(UserPickLocationComponent, {
height: '470px',
width: '600px',
data: dialogParams
}).afterClosed().subscribe(returnVal => {
// ...
})
}