title: Disable a link in angular 2+
body: <p>I'm attempting to disable a link until an API call is made in Angular 6. I want the link to be disabled until the getSelectedDealer() API is returned. </p>
  
  <pre><code> &lt;menu-link *ngIf="perms.has(perms.TOP_OFFERS) &amp;&amp; _dealerPersistenceService.getSelectedDealer()"
             route="/dynamic-journeys/{{getDealerId()}}/vehicles"&gt;
      &lt;menu-item&gt;&lt;img src="/assets/menu-icons/top-offers.svg"&gt;Dynamic Journeys&lt;/menu-item&gt;
  &lt;/menu-link&gt;
  </code></pre>
  
  <p>Here is the code for the 'a' tag component and the CSS.</p>
  
  <pre><code>&lt;a [routerLink]="route" routerLinkActive="active" class="menu-link" [class.disabled]="disabled ? true: null"&gt;
  &lt;ng-content select="menu-item"&gt;&lt;/ng-content&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>a.disabled {
      pointer-events: none;
      cursor: default;
  }
  </code></pre>
  
  <p>Basically I need the 'menu-link' items to be disabled prior to API call and be enabled after. </p>