We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
At the moment, you have to do this:
<ul data-bind="foreachInit: { name: 'personTemplate', data: persons }"> <li data-init data-bind="init, text: name">Michael Jordan</li> <li data-init data-bind="init, text: name">Larry Bird</li> <li data-init data-bind="init, text: name">Magic Johnson</li> </ul> <script type="text/ko-template" id="personTemplate"> <li data-template data-bind="text: name"></li> </script>
However, as the template has been explicitly specified, the data-init attribute is not necessary. You should be able to do this:
data-init
<ul data-bind="foreachInit: { name: 'personTemplate', data: persons }"> <li data-bind="init, text: name">Michael Jordan</li> <li data-bind="init, text: name">Larry Bird</li> <li data-bind="init, text: name">Magic Johnson</li> </ul> <script type="text/ko-template" id="personTemplate"> <li data-template data-bind="text: name"></li> </script>
The text was updated successfully, but these errors were encountered:
baa4007
ErikSchierboom
No branches or pull requests
At the moment, you have to do this:
However, as the template has been explicitly specified, the
data-init
attribute is not necessary. You should be able to do this:The text was updated successfully, but these errors were encountered: