title: No provider for MdDialogRef
body: <p>I reoponed this issue since it didn't solve my problem in a similar discusion.</p>
  
  <p>I still have the error <strong>'No provider for MdDialogRef</strong>' even after i followed the official tutorial step by step.</p>
  
  <p>I have two components. First component :</p>
  
  
  
  <pre class="lang-typescript prettyprint-override"><code>import { MdDialog} from "@angular/material";
  
  import { DocumentDialogComponent } from './document-dialog.component';    
  
  @Component({
    selector: 'documents-list',
    template
  })
  export class DocumentsListComponent {
  
    constructor(
       public dialog: MdDialog) {
    }
  
    openFormDialog() {
  
     let dialogRef  = this.dialog.open(DocumentDialogComponent,
     {
     }
     );
     dialogRef.afterClosed().subscribe(result =&gt; {
        this.selectedOption = result;
     });
    }
  </code></pre>
  
  <p>My second component (The Dialog) :</p>
  
  <pre class="lang-typescript prettyprint-override"><code>import { MdDialogRef} from "@angular/material";
  
  @Component({
   selector: 'document-dialog',
   template
   })
  
  export class DocumentDialogComponent {
      constructor(
          public dialogRef: MdDialogRef&lt;DocumentDialogComponent&gt;
      ) {}
  }
  </code></pre>
  
  <p>And my module config :</p>
  
  <pre class="lang-typescript prettyprint-override"><code>  import { MaterialModule } from "@angular/material";
    import { DocumentsListComponent } from './documents-list.component';
    import { DocumentDialogComponent } from './document-dialog.component';
  
    imports : [
      MaterialModule.forRoot() 
     ],
  
    declarations: [
        AppComponent,
        DocumentListComponent,
        DocumentDialogComponent
      ],
      entryComponents: [
        AppComponent,
        DocumentListComponent,
        DocumentDialogComponent
      ],
      providers: [
      ],
      bootstrap: [
        AppComponent
      ]
  </code></pre>
  
  <p>Why i still have the error :  </p>
  
  <pre class="lang-typescript prettyprint-override"><code>Error in ./DocumentsListComponent class DocumentsListComponent - inline template:0:167 caused by: No provider for MdDialogRef!
  </code></pre>