JavaScript Video Tutorial - Understanding $broadcast and $emit in AngularJS

preview_player
Показать описание
In this demonstration, we will explore how to use $broadcast and $emit, examining their similarities and differences.
Рекомендации по теме
Комментарии
Автор

I have been trying to do the same with a parent and a child controller. saw that $scope.on is not a valid function. When i googled it, I found that the controller is being initialized before the direct. Have you faced the same problem before? Any ideas how to resolve it?

nikhilkatakam
Автор

please explain if I replace .run() with .config() then it's show error... why???

samnindersingh