title: Angular material StaticInjectorError: No provider for MatDialog
body: <p>I am getting below error in my browser console when I launch my Angular 5 page in browser.</p>
  
  <blockquote>
    <p>ERROR Error: StaticInjectorError(AppModule)[AppComponent ->
    MatDialog]:    StaticInjectorError(Platform: core)[AppComponent ->
    MatDialog]: 
        NullInjectorError: No provider for MatDialog!
        at _NullInjector.webpackJsonp.../../../core/esm5/core.js._NullInjector.get</p>
  </blockquote>
  
  <p>What am I  missing?</p>