Angular Bad Parts, part 3

Alexey Migutsky
1 min readNov 23, 2014

--

This article was originally published at fse.guru on November 10, 2014.
Moved to Medium for consistency with the
parent article.

  • The injector is global for a given ng-app
  • Factories, directives and stuff are not namespaced inside a module
  • You cannot compose several ng-apps on the same page…

… Which lead us to name clashes.

Yes, there is a real possibility to have name collisions. Yes, every developer will face them eventually.

Yes, it really hurts.

The last registered service wins.

This fact make modules depend on load order. And it kills the only one useful purpose of having “angular-flavour” modules.

Oh, by the way, do you know that you can register several directives with the same name?

And they all will be linked to the same element…

--

--