DEV Community

AngularJS communication between two components

nikolaof on September 27, 2018

Hi. I'm writing an SPA using angularJS and so far I have created two distinct components for the app one called loginModal and the other one list...
Collapse
 
zilurrane profile image
Zilu Ramkrishna Rane

RxJS comes with concept of Subject.
You can look at below article for more details.
hackernoon.com/subjects-in-angular...
In our project we used Subject to pass value from One Component to Another.

Collapse
 
nikolaof profile image
nikolaof

Can this be used with AngularJS (1.x) ? Because I'm only seeing references with Angular2

Collapse
 
zilurrane profile image
Zilu Ramkrishna Rane

I never tried AngularJS(1.x) So, not sure about practicality of above solution here.
You can have a try.