title: How to declare a variable in a template in Angular
body: <p>I have the following template :</p>
  <pre><code>&lt;div&gt;
    &lt;span&gt;{{aVariable}}&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  <p>and would like to end up with :</p>
  <pre><code>&lt;div &quot;let a = aVariable&quot;&gt;
    &lt;span&gt;{{a}}&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  <p>Is there a way to do it ?</p>