简体   繁体   English

在 Angular Material 对话框打开时导航

[英]Navigate when Angular Material dialog box opens

I want to display some data to dialog and to do this, I need to give a navigation with some id parameters when I open the dialog.我想向对话框显示一些数据,为此,我需要在打开对话框时提供带有一些id参数的导航。

Is there a way to navigate when the material dialog opens?材质对话框打开时是否可以导航?

您可以从 dialog-ref 订阅可观察的 afterOpen() 函数,并且在该函数中您可以导航到特定的 url。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM