Is there a way to change the default one-way binding of an interpolated value (e.g. ${someValue}) in the view to one-time?
Something like the angularjs {{::someValue}}
For the benefit of developers still looking for a solution to this, the feature is now implemented using binding behaviour. You can use ${someValue & oneTime}
to get one time binding of the interpolated string. Alternatively you can use normal binding syntax like this value.one-time="someValue"
For more details, refer to this issue
From Rob Eisenberg via Gitter channel:
There will be a way to do that once we implement binding options.
There are a variety of options for bindings we want to add such as : trigger, signal, mode, etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With