ksd123
asked on
Custom filter using AngularJS
Hi Experts,
I get a numeric value from a server and would like to format as a percent and display in the UI. How can I do this in Angularjs using custom filter? Here is my requirement
Data from server UI
0 should display as NA
0.1234 should display as 12.34% //2 decimals
0.05 should display as 5.00% //2 decimals
6.24 should display as 6.24%
Thanks in Advance
I get a numeric value from a server and would like to format as a percent and display in the UI. How can I do this in Angularjs using custom filter? Here is my requirement
Data from server UI
0 should display as NA
0.1234 should display as 12.34% //2 decimals
0.05 should display as 5.00% //2 decimals
6.24 should display as 6.24%
Thanks in Advance
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER