title: "No provider for MdDialogRef!"
body: <p>Suppose I have this component:</p>
  
  <pre><code>@Component({
    selector: 'pizza-dialog',
    template: `
    &lt;h1 md-dialog-title&gt;Would you like to order pizza?&lt;/h1&gt;
  
    &lt;md-dialog-actions&gt;
      &lt;button (click)="dialogRef.close('yes')"&gt;Yes&lt;/button&gt;
      &lt;button md-dialog-close&gt;No&lt;/button&gt;
    &lt;/md-dialog-actions&gt;
    `
  })
  export class PizzaDialog {
    constructor(public dialogRef: MdDialogRef&lt;PizzaDialog&gt;) { }
  }
  </code></pre>
  
  <p>I've already imported MdDialog into my app module:</p>
  
  <pre><code>@NgModule({
    imports: [
      BrowserModule,
      MaterialModule.forRoot(),
      MdDialogModule.forRoot(),
    ],
    ...
  })
  </code></pre>
  
  <p>Why would I get this error?</p>
  
  <blockquote>
    <p>No provider for MdDialogRef!</p>
  </blockquote>