Knockout model bindings not clearing when new model created
问题 I am creating a Knockout model within a bootstrap modal. Initially the model is created and bound to the template correctly, however when closing and reopening the modal I end up with multiple items in the template. The model doesn't seem to be re-instantiated with multiple modal.show() calls. I have broken down my real world example to that below with the same issues. Because of my real world code I call ko.cleanNode() to clear the bindings as without it I get the 'You cannot apply bindings