comment foreach binding vs foreach binding in knockoutjs
Use native binding when a parent-child relationship exists within the binding section, like a ul and a li. Use the comment syntax for containerless binding when your binding section does not have a parent-child relationship. In your example you use the first code block because you are not trying to bind to a parent-child structure. … Read more