title: Accessing the HTML Button ID in TS file (Ionic)
body: <p>I'm looking to call the HTML button ID into my TS file. I know it's not best practice to use "getElementByID" (or so I've read) in Ionic. Was wondering what the appropriate approach would be. </p>
  
  <p>Here is my Code...</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;button id="B" value="{{gamer[indexCount].correct}}" ion-button class="answerButtona" block (click)="answerClicked('B')"&gt;
      {{gamer[indexCount].B}}
    &lt;/button&gt;
  </code></pre>
  
  <p>TS</p>
  
  <pre><code>answerClicked(ans){
  //this is my function now
  }
  
  
  let body = {
      user_id: this.gamer[this.indexCount]['ID'],
      userAnswer: **Looking to call ans here**
  }
  </code></pre>
  
  <p>I'm now passing in a parameter to the function. How would I access the parameter. this.ans doesn't seem to be working.</p>
  
  <p>EDIT: Update to the code</p>