I've been exploring the emit feature in AngularJS and had a question about passing a function as an argument.
In the Parent Controller:
$scope.$on("getChildFunction", function(event, func) {
console.log("The function is...", func);
})
In the Child Controller:
$scope.$emit("getChildFunction", $scope.load_function());
However, I noticed that when inspecting the web page, the func variable is not returning any value. Is it possible to pass functions to the parent scope using emit?