shlomiassaf / ngx-modialog

Modal / Dialog for Angular
http://shlomiassaf.github.io/ngx-modialog
MIT License
686 stars 241 forks source link

Open custom dialog using angular route component #423

Open StickNitro opened 6 years ago

StickNitro commented 6 years ago

I know this probably is not the right place for this but didn't know where else to ask, this is not an issue but looking for an example of how to open a custom dialog to a angular route.

For example I have the following route which creates a wizard like interface and want to load this into a modal dialog

routes: [
    {path: 'create': component: ..., children:[
        {path: '', component: ...},
        {path: 'page2', components: ...},
        ...
    }
];

Is it possible to have the modal open the component of a route and if so has anyone got any examples of doing this?