title: Using Generic Type parameter in Angular material dialog dialog.open method
body: <p>I am trying to write a generic service that will take Type and options as parameters and display material popup using material, but when I try to use generic parameter as parameter to open method typescript is showing following error
  "'T' only refers to a type, but is being used as a value here"</p>
  
  <pre><code>export class SharedMethodsService {
      constructor(private dialog: MatDialog) { }
  
      displayPopup&lt;T&gt;(options) {
          this.dialog.open(T, options)
      }
  }
  </code></pre>