ko <!--ko-->
binding and data-bind="visible:sometext" binding
Both binding did the same operation and which one is efficient for use and which one is best
ko <!--ko-->
binding and data-bind="visible:sometext" binding
Both binding did the same operation and which one is efficient for use and which one is best
<!-- ko [binding] -->
allows you to bind to an virtual element.data-bind="[binding]"
is a regular binding and can only be applied to actual elements.The difference is that the first can be used without having to create an element:
Do note that not every binding handler can be applied to an virtual element:
Virtual elements :
e.g. :
e.g. :
Actual elements
data-bind
: