[Knockout] How to fix the «You cannot apply bindings multiple times to the same element» issue

bug-fix
knockout
(Dmitry Fedyuk) #1

Usually this issue is caused by a missed <!-- /ko --> closing tag.

Wrong:

<!-- ko text: someFunction() -->

Right:

<!-- ko text: someFunction() --><!-- /ko -->

Wrong:

<!-- ko template: 'someTemplate' -->

Right:

<!-- ko template: 'someTemplate' --><!-- /ko -->
0 Likes