Angular 1.6 component binding

190 Views Asked by At

Thank you for watching my question.

So, I have an angular 1.6 component in 2 places, and when I change a variable on one of them I want to be changed in the second also.

Do you have an idea how can I accomplish that?

Regards, Andrei

1

There are 1 best solutions below

1
On BEST ANSWER

You can use service to share data. Or you can broadcast events through $rootScope and send your data as a payload of these events.