Angular material dialog example

1 · Adrian Matei · Jan. 4, 2022, 7:08 a.m.
Project: codever The following example shows the elements required to implement an angular material dialog to ask the user to log in on Codever, when this is needed (like following tags). First thing add the MatDialogModule in the Angular module where you intend to use the dialog, and the component holding the dialog body (LoginRequiredDialogComponent) to the entryComponents @NgModule({ imports: [ //... MatDialogModule, RouterModule ], declarations: [ //.... LoginR...