Dev Overflow Dev Overflow - 3 months ago 112
Javascript Question

Filter currency not working after upgrade

I've just upgraded to vue.js version 2. However after upgrading to vue.js version 2 my currency filter isn't working anymore. it throws a error on console.

<span class="amount">{{ amount | currency '£' }</span>

Console erro

Failed to resolve filter: currency '£'


Built in Text filters has been removed in vue.js version-2.

Replacing the currency Filter

'£' + price.toFixed(2)