Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 711
  • Last Modified:

AngularJS Currency fillter no cents (rookie question)

Hi I have the Following

 <div><label>Assessed</label>: {{listingDetails.Assessed  | currency }}</div>

Works great except I get
$149,500.00

and need

$149,500

is there a better filter easy modification ? using Angular 1.07

Thanks
0
Charles Baldo
Asked:
Charles Baldo
1 Solution
 
leakim971PluritechnicianCommented:
Test page : http://jsfiddle.net/2DphN/

<div><label>Assessed</label>: {{(listingDetails.Assessed | currency).split(".")[0]}}</div>

Open in new window

0
 
Charles BaldoSoftware DeveloperAuthor Commented:
Perfect
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now