Hacker News new | ask | show | jobs
by megamindbrian2 2884 days ago
Looks like Angular 1
1 comments

Can you explain what you mean?
The dependency injection (DI) system is indeed inspired by Angular's. It has some major differences though:

- Fusion.js DI is token-based rather than string-based, so no naming collisions

- We support statically typing injectables (similar to Angular 2+)

- plugins are the only injectable entity type (whereas Angular is conceptually complex: e.g. modules, services, providers, factories, etc)

- plugins are isomorphic, whereas AngularJS injectables are not

I sorta already expected that people might get mixed feelings when seeing a DI system, but we spent a lot of time designing/tinkering with the plugin architecture to make it truly useful for managing complex library integrations and complex backends. I'd be happy to answer any questions about how we've been using it.