1
手動サブスクリプションで従属オブザーバブルが変更された場合、オブザーバブルに基づいて他のサブスクリプションがトリガされてはなりませんか?手動サブスクリプションが呼び出されていない
以下の例では、selectedGroupType
プロパティを変更するとselectedTravellerCount
が変更され、selectedTravellerCount
サブスクリプションがトリガーされるはずです。しかし、これは起こりません。
viewModel.selectedGroupType.subscribe(function(groupType) {
alert(groupType);
this.selectedTravellerCount = 10;
}, viewModel);
viewModel.selectedTravellerCount.subscribe(function(travellerCount) {
alert(this.travellerCount);
}, viewModel);
あなたのアドバイスをありがとう。 – BrightonDev