title: How to pass attribute ID to ngCLass condition
body: <p>In this code : </p>
  
  <pre><code>  &lt;div id="navi-div"&gt; 
    &lt;div class="navi-button" id="dashboard" (click)="goTo($event)"  [ngClass]="{'navi-button-selected': selectedEvent === id}"&gt;Dashboard Final &lt;/div&gt;
    &lt;div class="navi-button" id="dashboardtemp" (click)="goTo($event)" [ngClass]="{'navi-button-selected': selectedEvent === id}"&gt; Dashboard Temp &lt;/div&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>I cannot correctly pass  id value to  [ngClass] condition.  In ngClass $event is not recognised. So, how  can I do that ? </p>
  
  <p>My onCLick function: </p>
  
  <pre><code>  private goTo(event): void {
      let path: string = event.target.attributes.id.value; 
      this.selectedEvent = event.target.attributes.id;
      this.router.navigate([path], { queryParams: {  }});  
    }
  </code></pre>