CPC G06F 16/957 (2019.01) [G06F 9/45529 (2013.01); G06F 16/9577 (2019.01); G06F 40/14 (2020.01)] | 20 Claims |
1. A computer-implemented method for presenting web application content, the method comprising:
executing, by one or more processors, a parent application using a web browser, the parent application being a single page application configured to display a web page element and one or more of a plurality of child applications in the web browser, wherein the web page element is a document object model (DOM) element of the parent application, wherein the DOM element includes existing child application code of one of the plurality of child applications defining a presently displayed micro-frontend in the web browser as part of the web page element, and wherein the parent application includes one or more shared interface components for each of the plurality of child applications;
identifying, by the one or more processors, a first child application requested by a user action;
obtaining, by the one or more processors, first child application code of the identified first child application, the first child application code defining a first micro-frontend;
replacing, by the one or more processors, the existing child application code in the DOM element of the parent application with code based on the first child application code such that the first child application code is incorporated into the web page element; and
rendering, by the one or more processors, the code based on the first child application code and the web page element using the web browser, so that the first micro-frontend is displayed in the web browser as part of the web page element.
|