knockout.js ngShow

示例

用于动态显示/隐藏元素的AngularJS代码:

<p ng-show="SomeScopeProperty">This is conditionally shown.</p>

相当于KnockoutJS:

<p data-bind="visible: SomeScopeObservable">This is conditionally shown.</p>