ngBind(卷曲标记)
用于呈现纯文本的 AngularJS 代码:
<p>{{ ScopePropertyX }} and {{ ScopePropertyY }}</p>
KnockoutJS 等价物:
<p>
<!-- ko text: ScopeObservableX --><!-- /ko -->
and
<!-- ko text: ScopeObservableY --><!-- /ko -->
</p>
要么:
<p>
<span data-bind="text: ScopeObservableX"></span>
and
<span data-bind="text: ScopeObservableY"></span>
</p>