By including Provider: MatDialog in the Constructur
constructor(groupService: GroupService, public dialog: MatDialog) {}
I get following error at runtime
Error: No provider for InjectionToken mat-dialog-scroll-strategy!
I have included the Matdialog in the "app.module.ts" Do I need a different Provider for it and which one? I use angular-material 2.0.0b12
You need to include MatDialog Module in the imports.
import {MatDialogModule} from '@angular/material'; @NgModule({ imports :[MatDialogModule], ... })
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With