Open Martlark opened 5 years ago
Move the new
to the viewmodel. Currently you create part of the viewmodel in the view.
I moved the new to the viewmodel as a computed. The bind parser on tko is not as flexible as legacy knockout.
Perhaps you would prefer to use the repeat binding: https://github.com/mbest/knockout-repeat
Sounds like a worthy addition to tko.
I have a foreach binding that builds an array using the page count so I can enumerate using the new array. tko throws an error on the new keyword.
Error