title: Angular 2 Material MdSnackBar no Provider
body: <p>I want a simple Snackbar popping up on the click of a button. But I always get the error:</p>
  
  <blockquote>
    <p>ERROR Error: No provider for MdSnackBar!
        at injectionError (core.es5.js:1169)
        at noProviderError (core.es5.js:1207</p>
  </blockquote>
  
  <pre><code>import {MdSnackBar} from '@angular/material';
  constructor(public snackBar: MdSnackBar){
          this.snackBar.open('hello')
      }
  </code></pre>