title: If I have a boolean in a Typescript file, how can I access it in the corresponding HTML file?
body: <p>I have a boolean that gets set in a Typescript file of an Angular component, and I want to display some text in the HTML file only when the boolean is true. How can I do this? </p>
  
  <p>Typescript:</p>
  
  <pre><code>this.displayButton = true;
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;script&gt;
      if ({{ displayButton }} = true) {
          document.write("&lt;span&gt;Some text&lt;/span&gt;");
      } else {
          document.write("&lt;span&gt;Some other text&lt;/span&gt;");
      }
  &lt;/script&gt;
  </code></pre>