platform-browser.umd.js:962 ORIGINAL EXCEPTION: 2 is not a valid digit info for number pipes
Is what I get from writing this in my template:
<li>Percentage satisfied: {{selectedCountry.averageSatisfaction | number:2}}</li>
My intention is to produce a decimal number with only two decimals. Can someone please point out what I am doing wrong? Here is the documentation: https://docs.angularjs.org/api/ng/filter/number
|number:'2'
? – Günter Zöchbauer Jun 6 '16 at 9:04{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}
) – Günter Zöchbauer Jun 6 '16 at 9:05