3 ms·
> The only exception to this is the relationship between views and their respective controllers. My point exactly. The relationship between views and controlle
by otikik 13y ago
> The only exception to this is the relationship between views and their respective controllers.
My point exactly. The relationship between views and controllers is important. Using $scope there is sucky (also, its name is too generic).
> Why do you think dependency injection doesn't help exactly?
I think that dependency injection helps, and I use it all the time. I just don't like Angular's take on it.
It relies too much on anonymous functions. I think that 'new' (or equivalent) and 'globally accessible glasses or factories' (or equivalent) are just fine in lots of cases. They make the dependencies implicit, yes, but that's secondary to the fact that the code is much more readable.