{"id":5850,"date":"2016-06-28T08:29:29","date_gmt":"2016-06-28T15:29:29","guid":{"rendered":"http:\/\/home.khris.net\/?p=5850"},"modified":"2016-07-11T08:30:39","modified_gmt":"2016-07-11T15:30:39","slug":"calling-all-the-monsters","status":"publish","type":"post","link":"https:\/\/home.khris.net\/?p=5850","title":{"rendered":"Calling all the monsters"},"content":{"rendered":"<p>\u041e\u0447\u0435\u043d\u044c \u0441\u0438\u043c\u043f\u0430\u0442\u0438\u0447\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e, \u0437\u0430\u043f\u0438\u0448\u0443 \u0441\u0435\u0431\u0435 \u043d\u0430 \u043f\u0430\u043c\u044f\u0442\u044c.<\/p>\n<p>http:\/\/stackoverflow.com\/a\/28156845<br \/>\n$rootScope.$emit only lets other $rootScope listeners catch it. This is good when you don&#8217;t want every $scope to get it. Mostly a high level communication. Think of it as adults talking to each other in a room so the kids can&#8217;t hear them.<br \/>\n$rootScope.$broadcast is a method that lets pretty much everything hear it. This would be the equivalent of parents yelling that dinner is ready so everyone in the house hears it.<br \/>\n$scope.$emit is when you want that $scope and all its parents and $rootScope to hear the event. This is a child whining to their parents at home (but not at a grocery store where other kids can hear).<br \/>\n$scope.$broadcast is for the $scope itself and its children. This is a child whispering to its stuffed animals so their parents can&#8217;t hear.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041e\u0447\u0435\u043d\u044c \u0441\u0438\u043c\u043f\u0430\u0442\u0438\u0447\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e, \u0437\u0430\u043f\u0438\u0448\u0443 \u0441\u0435\u0431\u0435 \u043d\u0430 \u043f\u0430\u043c\u044f\u0442\u044c. http:\/\/stackoverflow.com\/a\/28156845 $rootScope.$emit only lets other $rootScope listeners catch it. This is good when you don&#8217;t want every $scope to get it. Mostly a high level communication. Think of it as adults talking to each other in a room so the kids can&#8217;t hear them. $rootScope.$broadcast is a method [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/home.khris.net\/index.php?rest_route=\/wp\/v2\/posts\/5850"}],"collection":[{"href":"https:\/\/home.khris.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/home.khris.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/home.khris.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/home.khris.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5850"}],"version-history":[{"count":1,"href":"https:\/\/home.khris.net\/index.php?rest_route=\/wp\/v2\/posts\/5850\/revisions"}],"predecessor-version":[{"id":5851,"href":"https:\/\/home.khris.net\/index.php?rest_route=\/wp\/v2\/posts\/5850\/revisions\/5851"}],"wp:attachment":[{"href":"https:\/\/home.khris.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5850"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/home.khris.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5850"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/home.khris.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}