eclipsesource / eclipsesource/tabris-decorators
Support view injection via JSX
Open
DependencyInjection
enhancement
- Dominant language
- TypeScript
- Stars
- 4
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.