title: Angular 2+: Changing variables within template
body: <p>How would you change an existing Typescript variable from the template? </p>
  
  <p><strong>Example</strong></p>
  
  <pre><code>&lt;a class="header"&gt;{{myVar}}&lt;/a&gt;
  
  &lt;mat-tab-group&gt;
      &lt;mat-tab label="{{ submission.FileName }}" *ngFor="let submission of submissions | async"&gt;
  
          &lt;input myVar="submission.FileName" /&gt; &lt;-- SET VARIABLE HERE --&gt;
  
      &lt;/mat-tab&gt;
  &lt;mat-tab-group&gt;
  </code></pre>