title: pass string or object to angular2 material Dialog component
body: <p>How to I pass to an angular2 material dialogue component?</p>
  
  <p>Here is the html to trigger:</p>
  
  <pre><code>&lt;button md-raised-button color="primary" (click)="openDialog('stupid')"&gt;ADD GIT HOST&lt;/button&gt;
  </code></pre>
  
  <p>Here is the TS:</p>
  
  <pre><code>openDialog(slug){
  
  
      let dialogRef = this.dialog.open(DialogGitHost);
      dialogRef.afterClosed().subscribe(result =&gt; {
        //this.selectedOption = result;
      });
  
    }
  </code></pre>
  
  <p>How do I pass slug to the dialog on open so I can use it?
  e.g.</p>
  
  <pre><code>let dialogRef = this.dialog.open(DialogGitHost,slug);
  </code></pre>