What is the preferred way to store state between init and update for custom knockout binding?
The bindingContext is a possibility, but only for passing data from init to update the first time that the binding is triggered. The next time that update fires it would no longer be there. There are really two choices for where to store this type of state: 1- On the element, as you stated. You … Read more