Does the generated view exists right after you call ko.applyBindings()
or does the scaffolding happen asynchronously?
Thanks!
ko.applyBindings
is a synchronous call.
There may be cases where bindings have special code to do things in a setTimeout, but this is not generally the case.
With the addition of components in Knockout 3.2, components are asynchronous. With Knockout 3.3, there will be an option to render components synchronously if the viewmodel / template is loaded.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With