I want to edit some data using dialogs, I can do it moving it to a component, it reads its data and I can edit. Since the ammount of info that I want to change is small I dind't want an entire page just for that, so I've decide to use dialogs from material.
The part that I'm struggling with is making the dialog be indentified as a route, not as simple dialog. I've done some research but the information that I've found is from old angular versions, and something must've changed that whenever I try to replicate lots of erros pop up.
Is there any document on this, or maybe angular made it simpler in any way?
For now i'm using something like this
<a mat-icon-button [routerLink]="['cadastrar', dinamica.id]">
but I've wanted to use it
<a mat-icon-button (click)="openDialog()">
and then add the routing into this:
{path:'cadastrarDinamica/cadastrar/:id', component:CadastroDinamicaComponent, canActivate: [AdminGuard] },
I've followed this video but it dind't work, some of the tools that he used just created tons of errors