npm.io
1.0.8-rc.0 • Published 5 years ago

web-component-builder

Licence
ISC
Version
1.0.8-rc.0
Deps
2
Size
203 kB
Vulns
0
Weekly
0
Stars
2

codecov example workflow NPM

Web Component Builder

web-component-builder is a simple typescript project that allows creating web components with an angular-like syntax.

Currently, capabilities are :

  • Component declarations with selector and inline template

  • Component attributes as custom element attributes

  • Component lifecycle methods like onInit, onAttrChanges, onViewInit and onDestroy

  • Dependency Injection through services / providers

Examples

@Component({ selector: 'my-comp', template: '<div>My First Web Component with Builder!</div>' }) class MyComp implements IOnInit, IOnDestroy() { }

Keywords