requireJSを使用してロードするバインディングハンドラーのセットがありますが、ハンドラーが追加される前にkoがバインディングしていたことが問題であることが判明しました。これは十分に公平です。
私が抱えている問題は、これが発生したときにエラーが発生しなかったことです。ノックアウトは、登録されていないバインディングハンドラーを無視します。
エラーを強制する方法はありますか、または少なくともconsole.log
バインディングハンドラーが見つからない場合はありますか?
例:
<div data-bind="madeUpBinding: {}">No error here...</div>
このhtmlスニペットはknockoutjsによって解析さmadeUpBinding
れ、バインディングハンドラーとして登録されていなくても、エラーなどは表示されません。