Entry: Click the button:

Definition of jerryContainer: ViewContainerRef



_hostTNode:



container_id:

_hostView:

_lContainer:

View fragments to add:

The contents of _ngContext_ contain all the UI elements of the view:





First create, then render:



Render the added view fragment:

Render view is the template function that executes it:



This is similar to the SAP WebClient UI:



Finally, we call the browser’s native API: document.createElement to create the SPAN node:

For more of Jerry’s original articles, please follow the public account “Wang Zixi “: