You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So the context_app template is entirely occupied by directives using React. Well not entirely ... a small directive of indomitable Angular holds out against React and won't go away until #67259 takes over.
So for further deangularisation the doc-table directive needs to be wrapped in a React component. When this is done, the whole template can be migrated to a single React component clearing the way to migrate the controller and to get rid out the Angular router.
How to proceed
Implement the doc_table component to render the angular template inside, there's an example how this is done in the doc_views_registry
Alternative: Of course you could migrate doc_table directive to React, but this a potential 🐇 hole.
Note: Once this is done, we could migrate the next template 🦖, discover.html could be next
The text was updated successfully, but these errors were encountered:
So the context_app template is entirely occupied by directives using React. Well not entirely ... a small directive of indomitable Angular holds out against React and won't go away until #67259 takes over.
So for further deangularisation the doc-table directive needs to be wrapped in a React component. When this is done, the whole template can be migrated to a single React component clearing the way to migrate the controller and to get rid out the Angular router.
How to proceed
doc_views_registry
kibana/src/plugins/discover/public/application/doc_views/doc_views_registry.ts
Lines 35 to 44 in 19bda1f
It can render React or Angular under the hood, and it's used by the DocViewer
kibana/src/plugins/discover/public/application/components/doc_viewer/doc_viewer.tsx
Lines 32 to 50 in f47b3e5
kibana/src/plugins/discover/public/application/components/doc_viewer/doc_viewer_render_tab.tsx
Lines 32 to 40 in f47b3e5
That's how a angular directive is registered:
kibana/test/plugin_functional/plugins/doc_views_plugin/public/plugin.tsx
Lines 39 to 48 in 821aa99
Here's how the React Angular Doc table could look like (in approximately)
Alternative: Of course you could migrate doc_table directive to React, but this a potential 🐇 hole.
Note: Once this is done, we could migrate the next template 🦖, discover.html could be next
The text was updated successfully, but these errors were encountered: