4 ms·
I've spent some time with di.js [0], and it actually allows a few different ways of handling injection, one of which is simple type annotation, i.e.: class F
by nateabele 12y ago
I've spent some time with di.js [0], and it actually allows a few different ways of handling injection, one of which is simple type annotation, i.e.:
class Foo {
constructor(bar: Bar, baz: Baz) {
...
}
}
There's also syntax for using @Inject annotations inline in the constructor to provide more flexibility. The architecture may be coming together, but it sounds like there's still a long way to go before it's a fully-realized framework with more friendly conventions.
If anything, I think the upshot is that DOM handling has been pushed further to the edges, and the emphasis is on pure composition of classes and data structures, with less boilerplate, hand-waving, and framework-centricity.
[0] https://github.com/angular/di.js https://github.com/angular/di.js