Skip to content

Instantly share code, notes, and snippets.

@martinakraus
Created March 28, 2020 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martinakraus/6a31d12cb912eb97068b61f36722e380 to your computer and use it in GitHub Desktop.
Save martinakraus/6a31d12cb912eb97068b61f36722e380 to your computer and use it in GitHub Desktop.
function createViewNodes(view: ViewDef) {
...
view.nodes.forEach ((node => {
case 1: /* TypeElement */
createElement(view, rederHost, nodeDef);
break;
case 2: /* TypeText */
createText(view, rederHost, nodeDef);
break;
case 11: /* TypePipe */
createPipe(view, nodeDef);
break;
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment