In my business application I have the requirement to select records in a list, update the record data, select next item in list, and so on.
Use Case 1 Select item in list, open a dialog, manipulate data there and then return to list
Use Case 2 Navigate to page (via router), manipulate data there, navigate further from there
So what I want to avoid is to implement my business component twice. First time to make it work with the dialog and second time to make it behave like a "normal" component e.g. with prefetching data by resolver etc.
Anybody can tell me what is the best practice to do this in angular? Use component with router and open it in a dialog as well
I've found this one here==> Dynamically load a component inside a Material MatDialog
But e.g. this doesn't answer how to deal with prefetching (resolvers). From what I know dialogs are not using route resolvers.
Thanks in advance