How to share data between tabs

i have multiple tabs and i want to share data between these tabs.Please help me

You have many options to share data using

  1. $rootScope
  2. using factory
  3. Factory Update Function
  4. factory and $watch function
  5. Sessionstorage and localstorage

See these two article -

http://www.codeandyou.com/2015/09/share-data-between-controllers-in-angularjs.html

http://www.codeandyou.com/2015/07/difference-between-sessionstorage-and.html

i recommend you to use events
avoid $rootScope and it depends on your requirments if you should use sessionStorage/localStorage or not