NG-VDOM
Virtual DOM extension for Angular, heavily inspired by Inferno.
Installation
Install from NPM or Yarn:
npm install ng-vdom --save
Add to NgModule imports:
;
Edit tsconfig JSX options:
Usage
Make an Angular Component extends Renderable
with a render
method:
Embedding Virtual DOM contents inside template
What can be rendered?
- Native component (DOM element in browser);
- Class component (not fully react compatible);
- Function component;
- Angular component (need to be in
entryComponents
);
Roadmap
- Global boostrap without Angular code;
- Fragment render support;
- Array render support;
- React-compatible class component support;
- HTML Attribute support;