SyntaxFix
Write A Post
Hire A Developer
Questions
There are two ways to do this
1) Use get/set service
2) $scope.$emit('key', {data: value}); //to set the value
$scope.$emit('key', {data: value}); //to set the value
$rootScope.$on('key', function (event, data) {}); // to get the value