<div *ngIf="!node.children">
  <a href="{{node.url}}" [ngClass]="classes" title="{{node.tooltip}}"
    class="vertical-menu-item">
    {{node.title}}
  </a>
</div>

<div *ngIf="node.children">
  <a *ngIf="node.url != null" href="{{node.url}}" [ngClass]="classes" title="{{node.tooltip}}"
    (click)="headerClicked()" class="vertical-menu-item heading">
    {{node.title}}
    <md-icon class="rotating-icon" svgIcon="keyboard_arrow_right"></md-icon>
  </a>

  <button *ngIf="node.url == null" type="button" [ngClass]="classes" title="{{node.tooltip}}"
    (click)="headerClicked()" class="vertical-menu-item heading"
    [attr.aria-pressed]="isExpanded">
    {{node.title}}
    <md-icon class="rotating-icon" svgIcon="keyboard_arrow_right"></md-icon>
  </button>

  <div class="heading-children" [ngClass]="classes">
    <aio-nav-item *ngFor="let node of node.children" [level]="level + 1" [isWide]="isWide"
    [node]="node" [selectedNodes]="selectedNodes"></aio-nav-item>
  </div>
</div>
