How to get access of an variable or an function from a foreign in angular?

Viewed 15

I am new in angular and there are many variables in an existing code that I want to acess from an other controller other than where they get declared. The controllers are sibling controllers. Does anyone has any other idea how something like that can work or is firing to the rootscope the only possibility?

I tried firing to the rootscope but that didint work.

0 Answers
Related