You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm trying to convert myself to using simple-ioc, from jaredhanson/electrolyte, a functionality that seems simple but quite powerful is natural namespacing via strings.
I'll look in to your suggestion, a bit swamped at the moment, but it doesn't sound that bad :)
One question though, how would the "different modules with the same name" work when the container identifies modules by names, maybe I misunderstand you?
Hello, I'm trying to convert myself to using
simple-ioc
, fromjaredhanson/electrolyte
, a functionality that seems simple but quite powerful is natural namespacing via strings.Example follows:
In case I also have a controller for the same operation, but returns a page (instead of an API), i can do this:
So I can inject different modules with the same name, or same modules with different names, a lot of flexibility there.
Seems with
simple-ioc
all modules should have different names, likeapiListBlogposts
andcontrollerListBlogposts
in the above example.This leads to verbosity that in a medium-sized project is not always helpful.
Am I missing something?
The text was updated successfully, but these errors were encountered: