Angular's Global Context

AngularJS, the bad parts... :-(
Color Code:
- Black: "app" module (depends on mod1 and mod2)
- Blue: "mod1" module (depends on nothing)
- Red: "mod2" module (depends on nothing)


The module "app" depends on mod1, so this should render

The module "app" depends on mod2, so this should render: ... but it does... Because app depends on both mod1 and mod2

What it should be is, for mod2 to use mod1 stuff, it MUST require it as a dependency.

Why is this bad? Because it makes it IMPOSSIBLE to enforce modularity in angular without some kind of preprocessor to somehow parse all the templates and understand which module belongs to which template and... no... stop... just stop....

So, Angular's super lame then right? No, it's not super lame. It's still super awesome. But this part about angular... Yeah, this is a bad part :-(