title: adding a thousand separator to a input field in angular4
body: <p>I'm using angular 4 for my front end.I want to insert a thousand seperator to a input field. I tried this code but its not working</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>   &lt;input type="number" class="form-control" id="amount" placeholder="Amount" name="Amount" [ngModel]="Amount | number:'3.2-2'" (keypress)="onlyNumberKey($event)"&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>here is my component.ts code</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>export class CustomerDepositApplicationComponent implements OnInit {
  
  Amount: any;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Please help me..</p>