<md-toolbar color="primary" class="app-toolbar">
  <button class="hamburger" md-button
    (click)="sidenav.toggle()" title="Docs menu">
    <md-icon svgIcon="menu"></md-icon>
  </button>
  <a class="nav-link home" href="/"><img src="{{ homeImageUrl }}" title="Home" alt="Home"></a>
  <aio-top-menu *ngIf="isSideBySide" [nodes]="topMenuNodes"></aio-top-menu>
  <aio-search-box class="search-container" #searchBox></aio-search-box>
  <span class="fill-remaining-space"></span>
</md-toolbar>
<aio-search-results #searchResults></aio-search-results>

<a id="top-of-page"></a>
<md-sidenav-container class="sidenav-container" [class.starting]="isStarting" role="main">

  <md-sidenav [ngClass]="{'collapsed': !isSideBySide }" #sidenav class="sidenav" [opened]="isOpened" [mode]="mode">
    <aio-nav-menu *ngIf="!isSideBySide" class="top-menu" [nodes]="topMenuNodes" [currentNode]="currentNode"></aio-nav-menu>
    <aio-nav-menu [nodes]="sideNavNodes" [currentNode]="currentNode" ></aio-nav-menu>

    <div class="doc-version" title="Angular docs version {{currentDocVersion?.title}}">
      <select (change)="onDocVersionChange($event.target.selectedIndex)">
        <option *ngFor="let version of docVersions" [value]="version.title">{{version.title}}</option>
      </select>
    </div>
  </md-sidenav>

  <section class="sidenav-content" [id]="pageId" role="content">
    <aio-doc-viewer [doc]="currentDocument" (docRendered)="onDocRendered()"></aio-doc-viewer>
    <aio-dt [on]="dtOn" [(doc)]="currentDocument"></aio-dt>
  </section>

</md-sidenav-container>



<div *ngIf="isSideBySide" class="toc-container"></div>

<footer>
  <aio-footer [nodes]="footerNodes" [versionInfo]="versionInfo" ></aio-footer>
</footer>

