I want to send data from one controller to another controller in angularjs without using
$scope.$broadcast
I want to send data from one controller to another controller in angularjs without using
$scope.$broadcast
You should use a service or a factory but it is also possible to store data in $rootScope.
This is not advisable as root scope is a global variable and comes with its own set of problems here is an explanation why, but it might be just what you need if your testing something out.
In coding "if something's worth doing its worth doing right, right?" So I would advise building a factory in your Services.js file and then calling your factory in the controllers you want it accessible in.