Introduction:
Here I will explain how convert number to currency format in AngularJS or limit number to display / show with 2 or two decimal places in AngularJS with required currency format. By using currency property in AngularJS we can convert number to currency format and limit number to display with decimal values.
Description:
In previous articles I explained Angularjs convert lower case to upper case while typing text, Angularjs refresh div for every 1 second using interval mode, 5 + Angularjs Gridview and table plugin examples with demos, jQuery redirect to another page after 5 seconds and many articles relating to AngularJS, jQuery, JavaScript and asp.net. Now I will explain how convert number to currency format and limit number to 2 decimal places in AngularJS.
In previous articles I explained Angularjs convert lower case to upper case while typing text, Angularjs refresh div for every 1 second using interval mode, 5 + Angularjs Gridview and table plugin examples with demos, jQuery redirect to another page after 5 seconds and many articles relating to AngularJS, jQuery, JavaScript and asp.net. Now I will explain how convert number to currency format and limit number to 2 decimal places in AngularJS.
To convert number to currency format and limit number
to 2 decimal places in AngularJS we need to declare number like as shown below