Consider I have 3 components. 1. PatientComponent in /patient 2.PatientListComponent in /patient/list 3.PatientCareXComponent in /patient/care/x
I used behaviorsubject in patient.service.ts to cast the data from patientlistcomponent. I face some issues: 1. Initially in /patient/list page from where data arrives, I see data visible in PatientComponent in console.logs but not PatientCareXComponent. 2. When i move to /patient page from /patient/list, the visible data also disappears.
The code is as same as Angular2:RxJS Subject not responding to events and it is the same code in PatientComponent I have added in PatientCareXComponent . Please favour on this.