title: How to send values to a component from dialog service
body: <p>I'm trying to create a custom dialog service. 
  For that, I've created a dialog service:</p>
  
  <pre><code>import {DialogService,DialogRef,DialogCloseResult } from '@progress/kendo-angular-dialog';  
  import {Injectable} from "@angular/core";  
  import {CustomComponent} from './custom.component'; 
  
  @Injectable()
   export class DialogoService {
       constructor(private dialogService: DialogService) { }
       public confirm(title: string, content?: string): DialogRef {
        return  this.dialogService.open({
                title: title,
            content: CustomComponent ,//This is my component that holds the template
            actions: [
                      {text: 'Yes', primary: true},
                      {text: 'No'}
                     ]
                 });
              } }
  </code></pre>
  
  <p>And this is my CustomComponent</p>
  
  <pre><code>import {Component} from '@angular/core';
  
  @Component({
      moduleId : module.id,
      selector: 'customcomponent',
      templateUrl: './custom.component.html'
  })
  
  export class CustomComponent {
      content : string ;
  }
  </code></pre>
  
  <p>And finally my custom.component.html:</p>
  
  <pre><code>&lt;div&gt; Content: {{content}} &lt;/div&gt;
  </code></pre>
  
  <p>How should I send content parameter from service to dialogService.open function ?</p>
  
  <p>content parameter of dialogService.open can be string, Component or TemplateRef.
  In my case, I send CustomComponent as a parameter but can't set title parameter for this component from my service.</p>
  
  <p>Sorry for my bad english.
  Thanks in advance.</p>