Transferring Data from side menu to rootpages


#1

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


#2

You can use EventEmitter to emit/subscribe to events

https://angular.io/docs/js/latest/api/core/EventEmitter-class.html

or you can use some PubSub library/pattern.


#3

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


#4

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