'$scope.$on replacement in Angular 2+

in my component which I am migrating Angular js to angular 2+, I have $scope.$on which is getting data broadcasted from controller which is in Angular js. is there any replacement for $scope.$on(){} which can receive data from controller



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source