I have following in index.html

and the viewmodel js for the homeContent and responseContent is as follows:


But, when I run this, the responseContentModel is not able to get the value of firstName and lastName from homeContent view model as below:

Is anything wrong in accessing the homecontent values in responseContent view model using :
| | var homeContent = ko.dataFor(document.getElementById("homeContent")); |
| | self.firstName = homeContent.firstName; |
I saw these links (https://blogs.oracle.com/geertjan/entry/intermodular_communication_in_oracle_jet2 ) and it does works if I have the variable in root module(main.js). But not sure why the above is not working. Any pointers?
Thanks,
Krishna.