title: Error with Angular Material sidenav: cannot read property of undefined
body: <p>I'm working on an Angular client app and I've already used few of Material's features in this app like dialog, select, card etc. I think I've already installed everything I need. Now I made a sidenav and I want to use material's sidenav module, so I made it like this: <br><br></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;mat-container&gt;
    &lt;mat-content&gt;
      &lt;div (click)="sidenav.toggle()"&gt;&lt;/div&gt;
      my component html . . .
    &lt;/mat-content&gt;
    &lt;mat-sidenav #sidenav&gt;
      &lt;app-sidenav&gt;&lt;/app-sidenav&gt;
    &lt;/mat-sidenav&gt;
  &lt;/mat-container&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Now when I'm navigating to this component I'm getting an error: </p>
  
  <blockquote>
    <p>Uncaught (in promise):TypeError: Cannot read property 'runOutsideAngular' of undefined</p>
  </blockquote>
  
  <p>Without the  the component works perfectly fine... Does anybody know what might be the problem?
  Thanks!</p>