title: How Can I Get <div> height in my .ts file
body: <p>I am using ionic tags to design my application and at one of my screen I want <code>&lt;div&gt;</code> tag's height and want to calculate next view height</p>
  
  <p>Any Idea how to get <code>&lt;div&gt;</code> height at runtime in my <strong>.ts</strong> file?</p>
  
  <p><strong>Code:</strong> </p>
  
  <pre><code> &lt;div *ngIf="affectedItemsViewShowFlag" class="affected-items-list-style" [style.height.%]="height"&gt;
        &lt;ion-list *ngSwitchCase="'affected item'" class="list-style"&gt;
          &lt;ion-grid no-padding&gt;
            &lt;ion-row *ngFor="let keyValue of affectedItemJsonKeyValues"&gt;
              &lt;ion-col col-6&gt;
                &lt;ion-item&gt;
                  &lt;ion-label class="key-font-style"&gt;{{ keyValue }}&lt;/ion-label&gt;
                &lt;/ion-item&gt;
              &lt;/ion-col&gt;
              &lt;ion-col col-6&gt;
                &lt;ion-item class="column-remove-padding"&gt;
                  &lt;ion-label class="value-font-style"&gt;{{ faCaseDetails.affected_item[keyValue] }}&lt;/ion-label&gt;
                &lt;/ion-item&gt;
              &lt;/ion-col&gt;
            &lt;/ion-row&gt;
          &lt;/ion-grid&gt;
        &lt;/ion-list&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>in above <code>&lt;div&gt;</code> my height dynamic like <code>[style.height.%]="height"</code> and I am fetching this from my <strong>ts</strong> file.</p>
  
  <p>But before that, I want <code>&lt;div&gt;</code> height of the previous one segment.</p>
  
  <p>any help appreciated!</p>
  
  <p>Thanks in advance!</p>