title: Span in Angular
body: <p>I have this button and I want to make it calls methods when I click on "Select" and another method when I click "Change":</p>
  
  <pre><code>&lt;button type="button" class="btn btn-default" *ngIf="!edit" class="btn btn-default"&gt;
      &lt;span *ngIf="isNullOrUndefined(class?.classForeignId)"&gt;Select&lt;/span&gt;
      &lt;span *ngIf="!isNullOrUndefined(class?.classForeignId)"&gt;Change&lt;/span&gt;
  &lt;/button&gt;
  </code></pre>
  
  <p>i have tried to put <code>(click)="method()"</code>, but did not work. I'm so confused to what can I do. Please help</p>