It should be possible to let views be injected when using JSX expressions.
One option is to let createElement first check the attached injector for injectionHandlers of that type. If they are present, use that handler, otherwise create instance directly. To pass the creation properties a new decorator @injectionParam could be used to mark a parameter index for passing the injection parameter, or an option of @injectable. Or just assume it's the first parameter.
It should be possible to let views be injected when using JSX expressions.
One option is to let
createElementfirst check the attached injector for injectionHandlers of that type. If they are present, use that handler, otherwise create instance directly. To pass the creation properties a new decorator@injectionParamcould be used to mark a parameter index for passing the injection parameter, or an option of@injectable. Or just assume it's the first parameter.