Transferring Data from side menu to rootpages

How does one send data which is in the side menu into one of the pages

You can use EventEmitter to emit/subscribe to events

or you can use some PubSub library/pattern.

In my case, I just wanted to transfer just an integer variable. Found out that I could use LocalStorage also

$rootScope this will help toget value from one controller to any more controllers