How can I send my $scope object from one controller to another using .$emit and .$on methods?
$scope
.$emit
.$on
function firstCtrl($scop
This is my function:
$rootScope.$emit('setTitle', newVal.full_name); $rootScope.$on('setTitle', function(event, title) { if (scope.item) scope.item.name = title; else scope.item = {name: title}; });