Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
KnockoutJS で属性変更イベントを特定する方法はありますか?
jQuery で解決策を見つけました: DOM 属性の変更時にイベントを発生させます 。
でもKOでやればいいのに。
属性の変更がビュー モデルのプロパティにバインドされている場合は、そのプロパティをサブスクライブするだけで、変更の通知を受け取ることができます。
myViewModel.myProperty.subscribe(function(newValue) { alert("This property changed!!"); });