You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the examples a funciton that is run on a view (or model) is usually its method. Would it be possible to implement a syntax which would allow to let a model property through a global function - like a helper, say: a function to format amount as currency.
So that if we have a model:
{
name: Lexus,
price: 81999,
}
we would run the price through a helper named amountToCurrency(amount, format) using a syntax along {{ ^amountToCurrency(amount, '$0.00') }}.
Is that feasible?
The text was updated successfully, but these errors were encountered:
In the examples a funciton that is run on a view (or model) is usually its method. Would it be possible to implement a syntax which would allow to let a model property through a global function - like a helper, say: a function to format amount as currency.
So that if we have a model:
we would run the price through a helper named
amountToCurrency(amount, format)
using a syntax along{{ ^amountToCurrency(amount, '$0.00') }}
.Is that feasible?
The text was updated successfully, but these errors were encountered: