4 ms·
One reason that Angular feels more like a language than a framework to me is that it essentially has its own module/dependency system with all the dependency in
by milesrout 10y ago
One reason that Angular feels more like a language than a framework to me is that it essentially has its own module/dependency system with all the dependency injection stuff.
It don't even use Angular's D.I. to test things. We don't have any tests in our app, what would you even test? It just displays data it gets from various sources.
But this:
angular.module('...')
.controller('BlahController', function(a, b, c) {
'ngInject';
...
});
is still clearly better than this:
var a = require('a');
var b = require('b');
var c = require('c');
exports.BlahController = function() {
...
}