Skip to content

KO Programmatic ignores 'controlsDescendantBindings' #2

@vtortola

Description

@vtortola

Hi,

I have a part of my template that I don't want to be rendered, so I have tried with "controlsDescendantBindings" as the documentation proposes. ( http://knockoutjs.com/documentation/template-binding.html )

I have done an example where the model contains two properties, "Parent" and "Child". Parent must be shown, but Child must be not rendered.

It works neat with normal bindings: http://jsfiddle.net/vtortola/QXJVb/

It does work when using a template: http://jsfiddle.net/vtortola/uKLnm/3/

And it does not work when using KO programmatically: http://jsfiddle.net/vtortola/XGApK/

Does anybody know a workaround for this?

Thanks.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions