Filters removedbreaking
In 2.x, developers could use filters in order to apply common text formatting.
While this seems like a convenience, it requires a custom syntax that breaks the assumption of expressions inside of curly braces being “just JavaScript,” which has both learning and implementation costs.
Using the example above, here is one example of how it could be implemented.
<h1>Bank Account Balance</h1>
<p>{{ accountInUSD }}</p>
<script>
props: {
accountBalance: {
type: Number,
required: true
computed: {
accountInUSD() {
return '$' + this.accountBalance
}
}