title: How to format input text value to currency on angular 4 on lost focus?
body: <p>i want to format the value of the input text into currency after losing focus. How can i achieve that in angular4?</p>
  
  <pre><code>&lt;input type="text" name="txtamount" [(ngModel)]="amount" /&gt;
  </code></pre>
  
  <p>Any suggestion would be appreciated. Thanks!</p>