Skip to content

Instantly share code, notes, and snippets.

@agrgic16
Last active April 24, 2019 21:10
Show Gist options
  • Save agrgic16/809dc15bbec59a51d93f081951788857 to your computer and use it in GitHub Desktop.
Save agrgic16/809dc15bbec59a51d93f081951788857 to your computer and use it in GitHub Desktop.
Dialog configuration in routing config
export const routes: Routes = [
{
path: 'home',
component: DialogParentExample,
children: [
{
path: 'some-dialog-path',
component: DialogOverviewExampleDialog,
resolve: { dlgRef: DialogResolverService },
data: {
dlg: {
data: { name: 'Sample Dialog' },
width: '500px',
} as DialogRouteConfig,
},
},
],
}
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment