I don't understand why I can successfully bind data to a particular div, but if I attempt the same exact binding to a nested element (I've tried several configurations of divs and spans), Knockout will no longer respond to any data change for the binding. I can't suss out a reason for this. Can anyone offer insight? Here are the two scenarios:
Successful binding:
<div id="header" data-bind="html: viewModel.chatInvites()"></div>
Non responsive:
<div id="header">
<div id="chatInvitesCount" data-bind="html: viewModel.chatInvites()"></div>
</div>
The reason I need this nested structure is that I am styling the outer div as a circle with the inner div as centered text (a graphic treatment).