insertWhen
An extension function which inserts child component and binds it to the given ballast view model when the given condition is true.
Parameters
the inputs type
the events type
the state type
the container type
the ballast view model instance
the condition predicate
remove all children of the child component
whether to run factory function immediately with the current state
a function which re-creates the view based on the given state
An extension function which inserts child component and binds it to the given ballast view model using the sub extractor function when the given condition is true.
Parameters
the inputs type
the events type
the state type
the sub state type
the container type
the ballast view model instance
an extractor function
the condition predicate
remove all children of the child component
whether to run factory function immediately with the current state
a function which re-creates the view based on the given state