Last active
April 24, 2019 21:10
-
-
Save agrgic16/809dc15bbec59a51d93f081951788857 to your computer and use it in GitHub Desktop.
Dialog configuration in routing config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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