Describe the feature:
There are many cases across the majority of plugins that have a shared need for adding and removing registration from Angular's lifecycle hooks. There is likely an opportunity to encapsulate a large portion of these needs into a common module that can be consumed by many plugins.
Describe a specific use case for the feature:
Cc @elastic/kibana-platform to ensure visibility
Also sharing @mattapperson's suggestion to make a common function to standardize the mounting of React and avoiding duplication of additional Angular code unless custom logic is needed.
I agree that it is a hassle to mount a react app in Kibana because it has to be wrapped in an Angular directive or controller.
It is my understanding that Angular will eventually be removed from core, but in the interim a shared solution would be great.
Has anyone looked at https://github.com/coatue-oss/react2angular ?
//cc @azasypkin
It is my understanding that Angular will eventually be removed from core, but in the interim a shared solution would be great.
Yeah, same here.
Has anyone looked at https://github.com/coatue-oss/react2angular ?
Nope, looks like ngReact we use right now recommends react2angular as a modern alternative, but not sure how stable/mature it's.
Superseded by Kibana platform
Most helpful comment
Superseded by Kibana platform