title: How to get text width and height inside a TextArea in HTML using JavaScript?
body: <p>Have this scenario:</p>
  
  <p><a href="https://i.stack.imgur.com/cliKE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/cliKE.png" alt="Sample out put"></a></p>
  
  <p>Need to get the size of the <code>red box</code> inside the textarea. Basically dimension of the text, and not the dimension of the textarea.</p>
  
  <p>the html code is just this:</p>
  
  <pre><code>&lt;textarea style="width:450px;"&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>Is there a way to achieve this, using Angular4+ or Javascript?</p>