title: TypeScript function to set height in NgStyle does not work
body: <p>I have designed a shape and I want to determine its height based on a TypeScript-function, but the <code>ngStyle</code> does not apply the height to the shape.</p>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;div class = "card" [ngStyle] = "{'height': CalculateHeight()}" (click) = 'onSelect()'&gt;
  </code></pre>
  
  <p><strong>Function:</strong></p>
  
  <pre><code>CalculateHeight(): number {
    let CardHeight = ((this.Card.duration.Hours * 60) +
      (this.Card.duration.Minutes)) * 2;
  
    if (CardHeight &lt;= 60) {
      CardHeight = 60;
    }
  
    console.log(CardHeight);
  
    return CardHeight;
  }
  </code></pre>
  
  <p>What is the problem?</p>