Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

MOOC:InterModule Communication - Not Working

Krishnamoorthy Sethuraman-OracleAug 26 2016 — edited Sep 1 2016

I have following in index.html

pastedImage_0.png

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

pastedImage_2.png

pastedImage_3.png

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

pastedImage_4.png

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.

This post has been answered by John JB Brock-Oracle on Aug 31 2016
Jump to Answer
Comments
Post Details
Added on Aug 26 2016
8 comments
494 views