Check out example codes for "Can't bind to 'mat-dialog-close' since it isn't a known property of 'button'". It will help you in understanding the concepts better.

Code Example 1

import {MatDialogModule} from '@angular/material';

...

@NgModule({
  declarations: [
    ...
  ],
  imports: [
    ...
    MatDialogModule,
  ],

Learn ReactJs, React Native from akashmittal.com