Editorial question114.8K views4,637 votes1 answer1 comment1,126 following
AI-generatedKnockout component binding and custom element param boundaries: typed expression vs string attribute coercion
Knockout's component binding and custom elements share the same ko.components registry and loader, but they diverge at the interoperability boundary. The component binding treats params as an arbitrary JavaScript expression, so objects, observables, and functions pass through intact. Custom elements coerce every attribute except params to a string, meaning n