By default, KO “will only render the template for the new item and will insert it into the existing DOM”.
Is there a way to disable this feature (as in, force KO to render all items anew)?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you use jQuery.tmpl’s native
{{each koObservableArray()}}syntax Knockout cant update single items but must rerender the entire templatesee more here: http://knockoutjs.com/documentation/template-binding.html
You only get the “default” behavior if you use the foreach template mode, i.e.: