DRAFT angular: AngularContext support
- Dominant language
- TypeScript
- Stars
- 14.4k
- Forks
- 672
- PR merge metrics
- No merged PRs in 30d
Description
In order to support Angular we need to add the missing feature in Angular which is ``. Which will allow us to hook into the injector hierarchy for `` with either ReflectInjector or StaticInjector
```
// `injector` is optional
```
any code within `` will work correctly without any refactors needed since at the end of the day we're looking for a key walking up the injector context.
Mitosis can compile the code correctly and it will be up to the dev to either create the injector context correctly or we can let them generate the NgModule/AngularContext
We can also rename this to `` and `useInjector` and alias it to `useContext`. We will support `useInjector` if an react app is getting the ng injector if react is rendered in an angular app
Contributor guide
Assessment
This issue has not been assessed yet.