Open aliokan opened 7 years ago
You shoud inject into because its a value ;)
Should be documented !
var controller = new OneController();
_injector.mapToValue( IOneController, controller );
_injector.mapToValue( IOne2Controller, controller );
_addStatefulConfigs( [statefulConfig] );
_injector.injectInto( controller );
_addStatefulConfigs( [statefulConfig] );
var controller = _injector.instantiateUnmapped( OneController );
_injector.mapToValue( IOneController, controller );
_injector.mapToValue( IOne2Controller, controller );
Does this one work for you? It should be better...
Not in my case, because I need to inject controller in view defined statefulConfig
In module :