5

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}}

4

2 回答 2

4

为了让仍在寻找解决方案的开发人员受益,现在使用绑定行为来实现该功能。您可以使用${someValue & oneTime}来获得插值字符串的一次绑定。或者,您可以使用像这样的普通绑定语法value.one-time="someValue"

有关详细信息,请参阅此问题

于 2015-12-31T09:59:40.063 回答
1

来自 Rob Eisenberg 通过Gitter 频道

一旦我们实现绑定选项,就会有办法做到这一点。

我们要添加的绑定有多种选项,例如:触发器、信号、模式等。

于 2015-02-11T19:25:52.907 回答