Add comma in number after every thousand on event of "Enter" in a text box using Angular JS : <p>This is a question from Angular JS.
I need to add "comma" after every thousand on event of enter in a text box.
Like, if enter a number 1000000 in a text box and hit"Enter" button, text box should now show the value 1,000,000</p>

<p>I am trying to do it using a directive.Please tell me how can I do it. </p>
