Skip to content

Instantly share code, notes, and snippets.

View AurelienLoyer's full-sized avatar
🔥
👨🏻‍💻

Aurélien Loyer AurelienLoyer

🔥
👨🏻‍💻
View GitHub Profile
Here is a quick idea about how broadcast and emit work.
Notice the nodes below; all nested within node 3. You use broadcast and emit when you have this scenario.
Note: The number of each node in this example is arbitrary; it could easily be the number one; the number two; or even the number 1,348. Each number is just an identifier for this example. The point of this example is to show nesting of Angular controllers/directives.
3
------------
| |
----- ------