2017-09-12 4 views
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 => { 
    // ... 
    }) 
} 

Répondre

1

En ce moment, il est impossible. S'il vous plaît regardez ce GitHub issue.