Bryce Langlotz
Bryce Langlotz

Reputation: 323

AngularJS {{ val | number:1 }} not rounding to 1 decimal place

<p> <b>{{ x.title }} </b>  Rating:{{ x.rating | number:1}}</p>

The above code is what I'm using. It is getting the value correctly because it is showing an unrounded number (e.g. 3.333333333) so I know the value is passed correctly. Why won't the number:# filter work?

Upvotes: 2

Views: 1288

Answers (1)

Bryce Langlotz
Bryce Langlotz

Reputation: 323

I'm an idiot. CLEAR YOUR CACHE KIDS - It was working but hadn't reloaded my index.html file.

Upvotes: 1

Related Questions