In angular docs there is a topic about listening for child events from parents. That\'s fine. But my purpose is something reverse!. In my app there is an \'admin.component\'
For those who are getting Cannot read property 'notifyMe' of undefined
Cannot read property 'notifyMe' of undefined
Try calling the method inside ngAfterViewInit() intead of ngOnInit()
ngAfterViewInit()
ngOnInit()